Migrate light component to async (#4635)
This commit is contained in:
parent
4c03d670c1
commit
bde7176b3c
11 changed files with 99 additions and 88 deletions
|
@ -140,7 +140,7 @@ def state(new_state):
|
|||
# Update state.
|
||||
self._is_on = new_state
|
||||
self.group.enqueue(pipeline)
|
||||
self.update_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
return wrapper
|
||||
return decorator
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue