1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Webhook names (#18206)

* Add new automation_info param to async_trigger

* Add domain and name to webhook registration and add WS command
This commit is contained in:
Paulus Schoutsen
2018-11-05 09:23:58 +01:00
committed by Pascal Vizeli
parent 6e4ce35a69
commit 2e9132873a
20 changed files with 119 additions and 54 deletions

View File

@@ -33,7 +33,7 @@ def source_match(state, source):
return state and state.attributes.get('source') == source
async def async_trigger(hass, config, action):
async def async_trigger(hass, config, action, automation_info):
"""Listen for state changes based on configuration."""
source = config.get(CONF_SOURCE).lower()
zone_entity_id = config.get(CONF_ZONE)