Fix round typing [tplink] (#82437)

This commit is contained in:
Marc Mueller 2022-11-21 18:59:08 +01:00 committed by GitHub
parent 0337b5d975
commit a88e865dff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: