mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Adjust lutron_caseta type hints (#73840)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
73c54b14d0
commit
ad7da9803f
@ -86,6 +86,6 @@ class LutronCasetaFan(LutronCasetaDeviceUpdatableEntity, FanEntity):
|
||||
await self._smartbridge.set_fan(self.device_id, named_speed)
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
def is_on(self) -> bool:
|
||||
"""Return true if device is on."""
|
||||
return self.percentage and self.percentage > 0
|
||||
return bool(self.percentage)
|
||||
|
Loading…
x
Reference in New Issue
Block a user