Migrate light component to async (#4635)

This commit is contained in:
Pascal Vizeli 2016-11-30 22:33:38 +01:00 committed by Paulus Schoutsen
parent 4c03d670c1
commit bde7176b3c
11 changed files with 99 additions and 88 deletions

View file

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