Unhide SPC binary sensors by default (#30699)
This commit is contained in:
1 parent
b585feb109
commit
96c11bc6d7
1 file changed
-7
@@ -62,15 +62,8 @@ class SpcBinarySensor(BinarySensorDevice):
|
|||||||
@property
|
@property
|
||||||
def is_on(self):
|
def is_on(self):
|
||||||
"""Whether the device is switched on."""
|
"""Whether the device is switched on."""
|
||||||
|
|
||||||
return self._zone.input == ZoneInput.OPEN
|
return self._zone.input == ZoneInput.OPEN
|
||||||
|
|
||||||
@property
|
|
||||||
def hidden(self) -> bool:
|
|
||||||
"""Whether the device is hidden by default."""
|
|
||||||
# These type of sensors are probably mainly used for automations
|
|
||||||
return True
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def should_poll(self):
|
def should_poll(self):
|
||||||
"""No polling needed."""
|
"""No polling needed."""
|
||||||
|
|||||||
Reference in new issue
Block a user