Bugfix asyncio wait (#4946)
This commit is contained in:
1 parent
32dc518971
commit
8358ab56ea
3 files changed
+10
-5
No files matched your search
@@ -105,7 +105,8 @@ def async_setup(hass, config):
|
||||
|
||||
tasks = [input_slider.async_select_value(call.data[ATTR_VALUE])
|
||||
for input_slider in target_inputs]
|
||||
yield from asyncio.wait(tasks, loop=hass.loop)
|
||||
if tasks:
|
||||
yield from asyncio.wait(tasks, loop=hass.loop)
|
||||
|
||||
hass.services.async_register(
|
||||
DOMAIN, SERVICE_SELECT_VALUE, async_select_value_service,
|
||||
|
||||
Reference in new issue
Block a user