diff --git a/homeassistant/components/automation/manifest.json b/homeassistant/components/automation/manifest.json index ea63d4ff98a..935cc7a9175 100644 --- a/homeassistant/components/automation/manifest.json +++ b/homeassistant/components/automation/manifest.json @@ -4,6 +4,7 @@ "documentation": "https://www.home-assistant.io/components/automation", "requirements": [], "dependencies": [ + "device_automation", "group", "webhook" ], diff --git a/homeassistant/components/device_automation/__init__.py b/homeassistant/components/device_automation/__init__.py index b1f319b0a6a..018e1286d8b 100644 --- a/homeassistant/components/device_automation/__init__.py +++ b/homeassistant/components/device_automation/__init__.py @@ -75,7 +75,7 @@ async def async_get_device_automation_triggers(hass, device_id): @websocket_api.async_response @websocket_api.websocket_command( { - vol.Required("type"): "device_automation/list_triggers", + vol.Required("type"): "device_automation/trigger/list", vol.Required("device_id"): str, } ) diff --git a/homeassistant/components/light/strings.json b/homeassistant/components/light/strings.json new file mode 100644 index 00000000000..94954bb790b --- /dev/null +++ b/homeassistant/components/light/strings.json @@ -0,0 +1,8 @@ +{ + "device_automation": { + "trigger_type": { + "turn_on": "{name} turned on", + "turn_off": "{name} turned off" + } + } +} diff --git a/tests/components/device_automation/test_init.py b/tests/components/device_automation/test_init.py index 55367e7696c..16320257b40 100644 --- a/tests/components/device_automation/test_init.py +++ b/tests/components/device_automation/test_init.py @@ -62,7 +62,7 @@ async def test_websocket_get_triggers(hass, hass_ws_client, device_reg, entity_r await client.send_json( { "id": 1, - "type": "device_automation/list_triggers", + "type": "device_automation/trigger/list", "device_id": device_entry.id, } )