Plugwise binary_sensor typing improvement (#93371)
Typing miss correction (spotted by epenet)
This commit is contained in:
parent
af3bbdee82
commit
400263cf04
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue