Async gather wait (#4247)

* Fix config validation for input_*, script

* Allow scheduling coroutines

* Validate entity ids when entity ids set by platform

* Async: gather -> wait

* Script/Group: use async_add_job instead of create_task
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2016-11-06 09:26:40 -08:00
1 parent d4e8b831a0
commit a343c20404
13 files changed
+90 -60

No files matched your search

+2 -1
View File
@@ -218,4 +218,5 @@ class YrData(object):
dev._state = new_state
tasks.append(dev.async_update_ha_state())
yield from asyncio.gather(*tasks, loop=self.hass.loop)
if tasks:
yield from asyncio.wait(tasks, loop=self.hass.loop)