forked from home-assistant/core
Rename WS command
This commit is contained in:
@@ -541,7 +541,7 @@ async def _async_get_all_trigger_descriptions_json(hass: HomeAssistant) -> bytes
|
||||
return json_payload
|
||||
|
||||
|
||||
@decorators.websocket_command({vol.Required("type"): "triggers_platforms/subscribe"})
|
||||
@decorators.websocket_command({vol.Required("type"): "trigger_platforms/subscribe"})
|
||||
@decorators.async_response
|
||||
async def handle_subscribe_trigger_platforms(
|
||||
hass: HomeAssistant, connection: ActiveConnection, msg: dict[str, Any]
|
||||
|
@@ -685,7 +685,7 @@ async def test_subscribe_triggers(
|
||||
assert await async_setup_component(hass, "system_health", {})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
await websocket_client.send_json_auto_id({"type": "triggers_platforms/subscribe"})
|
||||
await websocket_client.send_json_auto_id({"type": "trigger_platforms/subscribe"})
|
||||
|
||||
# Test start subscription with initial event
|
||||
msg = await websocket_client.receive_json()
|
||||
|
Reference in New Issue
Block a user