mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Fix ISY994 hidden property
This commit is contained in:
parent
587ef04560
commit
28bbf39155
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user