mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Update __init__.py
This commit is contained in:
parent
48fd8f1f63
commit
84c89686a9
@ -67,8 +67,7 @@ def async_setup(hass, config):
|
|||||||
def async_handle_scene_service(service):
|
def async_handle_scene_service(service):
|
||||||
"""Handle calls to the switch services."""
|
"""Handle calls to the switch services."""
|
||||||
target_scenes = component.async_extract_from_service(service)
|
target_scenes = component.async_extract_from_service(service)
|
||||||
print(target_scenes)
|
|
||||||
print(component.entities)
|
|
||||||
tasks = [scene.async_activate() for scene in target_scenes]
|
tasks = [scene.async_activate() for scene in target_scenes]
|
||||||
if tasks:
|
if tasks:
|
||||||
yield from asyncio.wait(tasks, loop=hass.loop)
|
yield from asyncio.wait(tasks, loop=hass.loop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user