Adjust lutron_caseta type hints (#73840)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
73c54b14d0
commit
ad7da9803f
1 changed files with 2 additions and 2 deletions
|
@ -86,6 +86,6 @@ class LutronCasetaFan(LutronCasetaDeviceUpdatableEntity, FanEntity):
|
||||||
await self._smartbridge.set_fan(self.device_id, named_speed)
|
await self._smartbridge.set_fan(self.device_id, named_speed)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_on(self):
|
def is_on(self) -> bool:
|
||||||
"""Return true if device is on."""
|
"""Return true if device is on."""
|
||||||
return self.percentage and self.percentage > 0
|
return bool(self.percentage)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue