def action(entity_id, variables): """Action to be executed.""" _LOGGER.info('Executing %s', name) logbook.async_log_entry(hass, name, 'has been triggered', DOMAIN, entity_id) yield from script_obj.async_run(variables)
def action(entity_id, variables): """Action to be executed.""" _LOGGER.info('Executing %s', name) logbook.async_log_entry( hass, name, 'has been triggered', DOMAIN, entity_id) yield from script_obj.async_run(variables)
async def action(entity_id, variables, context): """Execute an action.""" _LOGGER.info('Executing %s', name) logbook.async_log_entry(hass, name, 'has been triggered', DOMAIN, entity_id) await script_obj.async_run(variables, context)
def action(variables=None): """Action to be executed.""" _LOGGER.info('Executing %s', name) logbook.async_log_entry(hass, name, 'has been triggered', DOMAIN) hass.loop.create_task(script_obj.async_run(variables))
async def action(entity_id, variables, context): """Execute an action.""" _LOGGER.info('Executing %s', name) logbook.async_log_entry( hass, name, 'has been triggered', DOMAIN, entity_id) await script_obj.async_run(variables, context)