Improve entity type hints [o] (#77826)
This commit is contained in:
parent
d6ca3544ee
commit
ea71a462d6
20 changed files with 68 additions and 58 deletions
|
@ -69,7 +69,7 @@ class OppleLight(LightEntity):
|
|||
self._color_temp = None
|
||||
|
||||
@property
|
||||
def available(self):
|
||||
def available(self) -> bool:
|
||||
"""Return True if light is available."""
|
||||
return self._device.is_online
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue