Fix ISY994 hidden property

pull/692/head
Paulus Schoutsen 2015-12-01 23:32:06 -08:00
parent 587ef04560
commit 28bbf39155
1 changed files with 5 additions and 1 deletions

View File

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