From a88e865dffa611d04cd4672b7c09ab523f03b46d Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Mon, 21 Nov 2022 18:59:08 +0100 Subject: [PATCH] Fix round typing [tplink] (#82437) --- homeassistant/components/tplink/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/tplink/light.py b/homeassistant/components/tplink/light.py index 65967eb6bea..d0c056d7c17 100644 --- a/homeassistant/components/tplink/light.py +++ b/homeassistant/components/tplink/light.py @@ -269,7 +269,7 @@ class TPLinkSmartBulb(CoordinatedTPLinkEntity, LightEntity): @property def brightness(self) -> int | None: """Return the brightness of this light between 0..255.""" - return round((self.device.brightness * 255.0) / 100.0) + return round((cast(int, self.device.brightness) * 255.0) / 100.0) @property def hs_color(self) -> tuple[int, int] | None: