Adjust lutron_caseta type hints (#73840)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
pull/73867/head
epenet 2022-06-22 22:37:01 +02:00 committed by GitHub
parent 73c54b14d0
commit ad7da9803f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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