Plugwise binary_sensor typing improvement (#93371)

Typing miss correction (spotted by epenet)
This commit is contained in:
Tom 2023-05-22 23:02:42 +02:00 committed by GitHub
parent af3bbdee82
commit 400263cf04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"])