Migrate light component to async (#4635)
This commit is contained in:
1 parent
4c03d670c1
commit
bde7176b3c
11 files changed
+99
-88
No files matched your search
@@ -189,7 +189,7 @@ class OsramLightifyLight(Light):
|
||||
" %s with transition %s ",
|
||||
self._name, transition)
|
||||
|
||||
self.update_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
def turn_off(self, **kwargs):
|
||||
"""Turn the device off."""
|
||||
@@ -209,7 +209,7 @@ class OsramLightifyLight(Light):
|
||||
self._light.set_onoff(0)
|
||||
self._state = self._light.on()
|
||||
|
||||
self.update_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
def update(self):
|
||||
"""Synchronize state with bridge."""
|
||||
|
||||
Reference in new issue
Block a user