Async cleanup part 3 (#4302)

This commit is contained in:
Pascal Vizeli 2016-11-08 07:31:40 +01:00 committed by Paulus Schoutsen
parent 231ef40f53
commit 2e0c185740
10 changed files with 14 additions and 15 deletions

View file

@ -119,7 +119,7 @@ class NetioApiView(HomeAssistantView):
ndev.start_dates = start_dates
for dev in DEVICES[host].entities:
self.hass.loop.create_task(dev.async_update_ha_state())
self.hass.async_add_job(dev.async_update_ha_state())
return self.json(True)