Add device automation support to switch entities (#26466)
* Add device automation support to switch entities * Update switch translations * Address review comments
This commit is contained in:
parent
fec6706bf7
commit
b14b14c3c9
7 changed files with 687 additions and 216 deletions
|
@ -333,7 +333,9 @@ class Script:
|
|||
self._log("Executing step %s" % self.last_action)
|
||||
integration = await async_get_integration(self.hass, action[CONF_DOMAIN])
|
||||
platform = integration.get_platform("device_automation")
|
||||
await platform.async_action_from_config(self.hass, action, variables, context)
|
||||
await platform.async_call_action_from_config(
|
||||
self.hass, action, variables, context
|
||||
)
|
||||
|
||||
async def _async_fire_event(self, action, variables, context):
|
||||
"""Fire an event."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue