From 400263cf0477a8eefd50699d93b08f9c30eac5ec Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 22 May 2023 23:02:42 +0200 Subject: [PATCH] Plugwise binary_sensor typing improvement (#93371) Typing miss correction (spotted by epenet) --- homeassistant/components/plugwise/binary_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/plugwise/binary_sensor.py b/homeassistant/components/plugwise/binary_sensor.py index ac7a4f796a2..956dd7f36da 100644 --- a/homeassistant/components/plugwise/binary_sensor.py +++ b/homeassistant/components/plugwise/binary_sensor.py @@ -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"])