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 authored and Paulus Schoutsen committed 2017-02-20 13:24:03 -08:00
1 parent 14cf5b884b
commit 1d7ab0fa95
8 files changed
+9 -8

No files matched your search

@@ -67,4 +67,4 @@ class EnvisalinkBinarySensor(EnvisalinkDevice, BinarySensorDevice):
def _update_callback(self, zone):
"""Update the zone's state, if needed."""
if zone is None or int(zone) == self._zone_number:
self.hass.async_add_job(self.update_ha_state)
self.hass.schedule_update_ha_state()