From 70c6c74c0005d4cf5957ac2f50a50dca87cb622f Mon Sep 17 00:00:00 2001 From: cyrilp Date: Fri, 1 Mar 2024 20:52:49 +0100 Subject: [PATCH] fix lint issue --- custom_components/deltadore_tydom/ha_entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/deltadore_tydom/ha_entities.py b/custom_components/deltadore_tydom/ha_entities.py index e02b203..ec0d8b3 100644 --- a/custom_components/deltadore_tydom/ha_entities.py +++ b/custom_components/deltadore_tydom/ha_entities.py @@ -854,7 +854,7 @@ async def async_turn_off(self, **kwargs): await self._device.turn_off() @property - def brightness(self) -> Optional[int]: + def brightness(self) -> int | None: """Return the current brightness.""" return value_to_brightness(self.BRIGHTNESS_SCALE, self._device.brightness)