Rename WS command

This commit is contained in:
Erik
2025-06-18 09:25:42 +02:00
parent 2562536743
commit fe05175adc
2 changed files with 2 additions and 2 deletions

View File

@@ -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]

View File

@@ -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()