Fix ISY994 hidden property
parent
587ef04560
commit
28bbf39155
|
@ -116,7 +116,6 @@ class ISYDeviceABC(ToggleEntity):
|
||||||
def __init__(self, node):
|
def __init__(self, node):
|
||||||
# setup properties
|
# setup properties
|
||||||
self.node = node
|
self.node = node
|
||||||
self.hidden = HIDDEN_STRING in self.raw_name
|
|
||||||
|
|
||||||
# track changes
|
# track changes
|
||||||
self._change_handler = self.node.status. \
|
self._change_handler = self.node.status. \
|
||||||
|
@ -181,6 +180,11 @@ class ISYDeviceABC(ToggleEntity):
|
||||||
return self.raw_name.replace(HIDDEN_STRING, '').strip() \
|
return self.raw_name.replace(HIDDEN_STRING, '').strip() \
|
||||||
.replace('_', ' ')
|
.replace('_', ' ')
|
||||||
|
|
||||||
|
@property
|
||||||
|
def hidden(self):
|
||||||
|
""" Suggestion if the entity should be hidden from UIs. """
|
||||||
|
return HIDDEN_STRING in self.raw_name
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
""" Update state of the sensor. """
|
""" Update state of the sensor. """
|
||||||
# ISY objects are automatically updated by the ISY's event stream
|
# ISY objects are automatically updated by the ISY's event stream
|
||||||
|
|
Loading…
Reference in New Issue