diff --git a/homeassistant/components/websocket_api/commands.py b/homeassistant/components/websocket_api/commands.py index d2044d1e8a2..701a9a659b1 100644 --- a/homeassistant/components/websocket_api/commands.py +++ b/homeassistant/components/websocket_api/commands.py @@ -95,7 +95,6 @@ def async_register_commands( async_reg(hass, handle_get_config) async_reg(hass, handle_get_services) async_reg(hass, handle_get_states) - async_reg(hass, handle_subscribe_trigger_platforms) async_reg(hass, handle_manifest_get) async_reg(hass, handle_integration_setup_info) async_reg(hass, handle_manifest_list) @@ -104,6 +103,7 @@ def async_register_commands( async_reg(hass, handle_subscribe_bootstrap_integrations) async_reg(hass, handle_subscribe_events) async_reg(hass, handle_subscribe_trigger) + async_reg(hass, handle_subscribe_trigger_platforms) async_reg(hass, handle_test_condition) async_reg(hass, handle_unsubscribe_events) async_reg(hass, handle_validate_config) diff --git a/homeassistant/helpers/trigger.py b/homeassistant/helpers/trigger.py index bbe85c5c8d2..15ea1fd0104 100644 --- a/homeassistant/helpers/trigger.py +++ b/homeassistant/helpers/trigger.py @@ -70,7 +70,7 @@ TRIGGERS: HassKey[dict[str, str]] = HassKey("triggers") # Basic schemas to sanity check the trigger descriptions, -# full validation is done by hassfest.services +# full validation is done by hassfest.triggers _FIELD_SCHEMA = vol.Schema( {}, extra=vol.ALLOW_EXTRA,