Reorg device automation (#26880)
* async_trigger -> async_attach_trigger * Reorg device automations * Update docstrings * Fix types * Fix extending schemas
This commit is contained in:
parent
b52cfd3409
commit
6fdff9ffab
48 changed files with 2014 additions and 1771 deletions
|
@ -336,7 +336,7 @@ class Script:
|
|||
self.last_action = action.get(CONF_ALIAS, "device automation")
|
||||
self._log("Executing step %s" % self.last_action)
|
||||
integration = await async_get_integration(self.hass, action[CONF_DOMAIN])
|
||||
platform = integration.get_platform("device_automation")
|
||||
platform = integration.get_platform("device_action")
|
||||
await platform.async_call_action_from_config(
|
||||
self.hass, action, variables, context
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue