Add unavailable to Vera (#46064)

This commit is contained in:
Greg Dowling 2021-02-08 14:25:54 +00:00 committed by GitHub
parent b1ffe429cd
commit 8f4ea3818d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 26 additions and 4 deletions

View file

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