Cleanup some async stuff (#6127)

* Cleanup some async stuff

* change to schedule_update_ha_state()

* fix media player

* fix zigbee
This commit is contained in:
Pascal Vizeli 2017-02-20 22:24:03 +01:00 committed by Paulus Schoutsen
parent 14cf5b884b
commit 1d7ab0fa95
8 changed files with 9 additions and 8 deletions

View file

@ -307,7 +307,7 @@ class ZigBeeDigitalIn(Entity):
subscribe(hass, handle_frame)
# Get initial state
hass.add_job(self.async_update_ha_state, True)
self.schedule_update_ha_state(True)
@property
def name(self):