Adjust lutron_caseta type hints (#73840)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>pull/73867/head
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…
Reference in New Issue