Async cleanup part 3 (#4302)
This commit is contained in:
parent
231ef40f53
commit
2e0c185740
10 changed files with 14 additions and 15 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue