Skip to content

Commit 1ecd03d

Browse files
authored
Drop invisible property functionality. (#87)
1 parent 781ea00 commit 1ecd03d

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

gateway_addon/property.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ def __init__(self, device, name, description):
1818
self.name = name
1919
self.value = None
2020
self.description = {}
21-
self.visible = True
2221
self.fire_and_forget = False
2322

24-
if 'visible' in description:
25-
self.visible = description['visible']
26-
2723
# Check 'min' and 'max' for backwards compatibility
2824
if 'min' in description:
2925
self.description['minimum'] = description['min']
@@ -61,7 +57,6 @@ def as_dict(self):
6157
prop = {
6258
'name': self.name,
6359
'value': self.value,
64-
'visible': self.visible,
6560
}
6661
prop.update(self.description)
6762
return prop
@@ -74,10 +69,6 @@ def as_property_description(self):
7469
"""
7570
return self.description
7671

77-
def is_visible(self):
78-
"""Return whether or not this property is visible."""
79-
return self.visible
80-
8172
def set_cached_value_and_notify(self, value):
8273
"""
8374
Set the cached value of the property and notify the device if changed.

gateway_addon/schema

0 commit comments

Comments
 (0)