mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Unhide SPC binary sensors by default (#30699)
This commit is contained in:
parent
b585feb109
commit
96c11bc6d7
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user