mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +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:
committed by
Pascal Vizeli
parent
6e4ce35a69
commit
2e9132873a
@@ -26,7 +26,7 @@ TRIGGER_SCHEMA = vol.All(vol.Schema({
|
||||
}), cv.key_dependency(CONF_FOR, CONF_TO))
|
||||
|
||||
|
||||
async def async_trigger(hass, config, action):
|
||||
async def async_trigger(hass, config, action, automation_info):
|
||||
"""Listen for state changes based on configuration."""
|
||||
entity_id = config.get(CONF_ENTITY_ID)
|
||||
from_state = config.get(CONF_FROM, MATCH_ALL)
|
||||
|
||||
Reference in New Issue
Block a user