1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-31 16:34:00 +00:00

Unhide SPC binary sensors by default (#30699)

This commit is contained in:
Franck Nijhof
2020-01-13 05:47:07 +01:00
committed by Paulus Schoutsen
parent b585feb109
commit 96c11bc6d7

View File

@@ -62,15 +62,8 @@ class SpcBinarySensor(BinarySensorDevice):
@property
def is_on(self):
"""Whether the device is switched on."""
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
def should_poll(self):
"""No polling needed."""