mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Plugwise binary_sensor typing improvement (#93371)
Typing miss correction (spotted by epenet)
This commit is contained in:
parent
af3bbdee82
commit
400263cf04
@ -152,7 +152,7 @@ class PlugwiseBinarySensorEntity(PlugwiseEntity, BinarySensorEntity):
|
||||
self._attr_unique_id = f"{device_id}-{description.key}"
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool | None:
|
||||
def is_on(self) -> bool:
|
||||
"""Return true if the binary sensor is on."""
|
||||
return self.entity_description.value_fn(self.device["binary_sensors"])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user