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:
parent
14cf5b884b
commit
1d7ab0fa95
8 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue