mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Fix round typing [tplink] (#82437)
This commit is contained in:
@@ -269,7 +269,7 @@ class TPLinkSmartBulb(CoordinatedTPLinkEntity, LightEntity):
|
|||||||
@property
|
@property
|
||||||
def brightness(self) -> int | None:
|
def brightness(self) -> int | None:
|
||||||
"""Return the brightness of this light between 0..255."""
|
"""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
|
@property
|
||||||
def hs_color(self) -> tuple[int, int] | None:
|
def hs_color(self) -> tuple[int, int] | None:
|
||||||
|
Reference in New Issue
Block a user