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

@ -123,7 +123,7 @@ class GenericCamera(Camera):
return self._last_image
finally:
if response is not None:
self.hass.async_add_job(response.release())
yield from response.release()
self._last_url = url
return self._last_image