diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index f2339e6bd1a..31834c7b7a3 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -21,7 +21,7 @@ from .components import http, persistent_notification from .const import ( REQUIRED_NEXT_PYTHON_HA_RELEASE, REQUIRED_NEXT_PYTHON_VER, - SIGNAL_BOOTSTRAP_INTEGRATONS, + SIGNAL_BOOTSTRAP_INTEGRATIONS, ) from .exceptions import HomeAssistantError from .helpers import ( @@ -431,7 +431,7 @@ async def _async_watch_pending_setups(hass: core.HomeAssistant) -> None: _LOGGER.debug("Integration remaining: %s", remaining_with_setup_started) if remaining_with_setup_started or not previous_was_empty: async_dispatcher_send( - hass, SIGNAL_BOOTSTRAP_INTEGRATONS, remaining_with_setup_started + hass, SIGNAL_BOOTSTRAP_INTEGRATIONS, remaining_with_setup_started ) previous_was_empty = not remaining_with_setup_started await asyncio.sleep(SLOW_STARTUP_CHECK_INTERVAL) @@ -622,7 +622,7 @@ async def _async_set_up_integrations( _LOGGER.warning("Setup timed out for bootstrap - moving forward") watch_task.cancel() - async_dispatcher_send(hass, SIGNAL_BOOTSTRAP_INTEGRATONS, {}) + async_dispatcher_send(hass, SIGNAL_BOOTSTRAP_INTEGRATIONS, {}) _LOGGER.debug( "Integration setup times: %s", diff --git a/homeassistant/components/websocket_api/commands.py b/homeassistant/components/websocket_api/commands.py index a78099e6065..68dbffa7440 100644 --- a/homeassistant/components/websocket_api/commands.py +++ b/homeassistant/components/websocket_api/commands.py @@ -12,7 +12,7 @@ from homeassistant.auth.permissions.const import CAT_ENTITIES, POLICY_READ from homeassistant.const import ( EVENT_STATE_CHANGED, MATCH_ALL, - SIGNAL_BOOTSTRAP_INTEGRATONS, + SIGNAL_BOOTSTRAP_INTEGRATIONS, ) from homeassistant.core import Context, Event, HomeAssistant, State, callback from homeassistant.exceptions import ( @@ -151,7 +151,7 @@ def handle_subscribe_bootstrap_integrations( connection.send_message(messages.event_message(msg["id"], message)) connection.subscriptions[msg["id"]] = async_dispatcher_connect( - hass, SIGNAL_BOOTSTRAP_INTEGRATONS, forward_bootstrap_integrations + hass, SIGNAL_BOOTSTRAP_INTEGRATIONS, forward_bootstrap_integrations ) connection.send_result(msg["id"]) diff --git a/homeassistant/const.py b/homeassistant/const.py index 4f4da4925d0..c89eca63623 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -786,4 +786,4 @@ CAST_APP_ID_HOMEASSISTANT_LOVELACE: Final = "A078F6B0" # User used by Supervisor HASSIO_USER_NAME = "Supervisor" -SIGNAL_BOOTSTRAP_INTEGRATONS = "bootstrap_integrations" +SIGNAL_BOOTSTRAP_INTEGRATIONS = "bootstrap_integrations" diff --git a/tests/components/websocket_api/test_commands.py b/tests/components/websocket_api/test_commands.py index 27ae21db6e2..135882d9aed 100644 --- a/tests/components/websocket_api/test_commands.py +++ b/tests/components/websocket_api/test_commands.py @@ -14,7 +14,7 @@ from homeassistant.components.websocket_api.auth import ( TYPE_AUTH_REQUIRED, ) from homeassistant.components.websocket_api.const import FEATURE_COALESCE_MESSAGES, URL -from homeassistant.const import SIGNAL_BOOTSTRAP_INTEGRATONS +from homeassistant.const import SIGNAL_BOOTSTRAP_INTEGRATIONS from homeassistant.core import Context, HomeAssistant, State, callback from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import entity @@ -1712,7 +1712,7 @@ async def test_subscribe_unsubscribe_bootstrap_integrations( message = {"august": 12.5, "isy994": 12.8} - async_dispatcher_send(hass, SIGNAL_BOOTSTRAP_INTEGRATONS, message) + async_dispatcher_send(hass, SIGNAL_BOOTSTRAP_INTEGRATIONS, message) msg = await websocket_client.receive_json() assert msg["id"] == 7 assert msg["type"] == "event" diff --git a/tests/test_bootstrap.py b/tests/test_bootstrap.py index 56c15f49337..e51f4d315ee 100644 --- a/tests/test_bootstrap.py +++ b/tests/test_bootstrap.py @@ -9,7 +9,7 @@ import pytest from homeassistant import bootstrap, core, runner import homeassistant.config as config_util -from homeassistant.const import SIGNAL_BOOTSTRAP_INTEGRATONS +from homeassistant.const import SIGNAL_BOOTSTRAP_INTEGRATIONS from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.dispatcher import async_dispatcher_connect @@ -748,7 +748,7 @@ async def test_empty_integrations_list_is_only_sent_at_the_end_of_bootstrap(hass integrations.append(data) async_dispatcher_connect( - hass, SIGNAL_BOOTSTRAP_INTEGRATONS, _bootstrap_integrations + hass, SIGNAL_BOOTSTRAP_INTEGRATIONS, _bootstrap_integrations ) with patch.object(bootstrap, "SLOW_STARTUP_CHECK_INTERVAL", 0.05): await bootstrap._async_set_up_integrations(