Add unavailable to Vera (#46064)
This commit is contained in:
parent
b1ffe429cd
commit
8f4ea3818d
15 changed files with 26 additions and 4 deletions
|
@ -93,6 +93,7 @@ class VeraLight(VeraDevice[veraApi.VeraDimmer], LightEntity):
|
|||
|
||||
def update(self) -> None:
|
||||
"""Call to update state."""
|
||||
super().update()
|
||||
self._state = self.vera_device.is_switched_on()
|
||||
if self.vera_device.is_dimmable:
|
||||
# If it is dimmable, both functions exist. In case color
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue