From 81c34ac952d223855dfd89b4184c094338005fdb Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:33:00 +0100 Subject: [PATCH] Fix spelling [docstrings + comments] (#114168) --- homeassistant/components/alexa/capabilities.py | 2 +- homeassistant/components/android_ip_webcam/binary_sensor.py | 2 +- homeassistant/components/automation/__init__.py | 2 +- homeassistant/components/ccm15/climate.py | 2 +- homeassistant/components/cloud/google_config.py | 2 +- homeassistant/components/fjaraskupan/fan.py | 2 +- homeassistant/components/google_assistant/helpers.py | 2 +- homeassistant/components/google_assistant/http.py | 2 +- homeassistant/components/home_connect/switch.py | 2 +- homeassistant/components/image/media_source.py | 2 +- homeassistant/components/insteon/api/properties.py | 2 +- homeassistant/components/nest/config_flow.py | 2 +- homeassistant/components/nexia/binary_sensor.py | 2 +- homeassistant/components/rfxtrx/config_flow.py | 2 +- homeassistant/components/roon/config_flow.py | 2 +- homeassistant/components/script/__init__.py | 2 +- homeassistant/components/synology_dsm/__init__.py | 2 +- homeassistant/components/tado/const.py | 2 +- homeassistant/components/teslemetry/sensor.py | 2 +- homeassistant/components/trace/__init__.py | 2 +- homeassistant/components/velbus/__init__.py | 2 +- homeassistant/components/xiaomi_aqara/config_flow.py | 2 +- homeassistant/components/zwave_js/api.py | 4 ++-- tests/components/calendar/test_trigger.py | 2 +- tests/components/fritz/test_sensor.py | 4 ++-- tests/components/hassio/test_ingress.py | 2 +- tests/components/homekit/test_type_thermostats.py | 2 +- tests/components/mystrom/test_init.py | 2 +- tests/components/nest/test_api.py | 4 ++-- tests/components/nest/test_init.py | 2 +- tests/components/recorder/test_filters_with_entityfilter.py | 4 ++-- .../recorder/test_filters_with_entityfilter_schema_37.py | 4 ++-- tests/components/recorder/test_init.py | 2 +- tests/components/script/test_init.py | 2 +- tests/components/valve/test_init.py | 2 +- tests/components/wemo/entity_test_helpers.py | 2 +- tests/components/wemo/test_fan.py | 2 +- tests/components/wemo/test_light_bridge.py | 2 +- tests/components/wemo/test_light_dimmer.py | 2 +- tests/components/wemo/test_switch.py | 2 +- tests/helpers/test_condition.py | 2 +- 41 files changed, 46 insertions(+), 46 deletions(-) diff --git a/homeassistant/components/alexa/capabilities.py b/homeassistant/components/alexa/capabilities.py index 1ef1b42b2f8..ecb7d5cb5a8 100644 --- a/homeassistant/components/alexa/capabilities.py +++ b/homeassistant/components/alexa/capabilities.py @@ -1584,7 +1584,7 @@ class AlexaModeController(AlexaCapability): ) modes += 1 - # Alexa requiers at least 2 modes + # Alexa requires at least 2 modes if modes == 1: self._resource.add_mode(f"state.{PRESET_MODE_NA}", [PRESET_MODE_NA]) diff --git a/homeassistant/components/android_ip_webcam/binary_sensor.py b/homeassistant/components/android_ip_webcam/binary_sensor.py index 85edfc8a6a6..3ec03a59342 100644 --- a/homeassistant/components/android_ip_webcam/binary_sensor.py +++ b/homeassistant/components/android_ip_webcam/binary_sensor.py @@ -52,7 +52,7 @@ class IPWebcamBinarySensor(AndroidIPCamBaseEntity, BinarySensorEntity): @property def available(self) -> bool: - """Return avaibility if setting is enabled.""" + """Return availability if setting is enabled.""" return MOTION_ACTIVE in self.cam.enabled_sensors and super().available @property diff --git a/homeassistant/components/automation/__init__.py b/homeassistant/components/automation/__init__.py index 7b1b142719a..3942ca6368f 100644 --- a/homeassistant/components/automation/__init__.py +++ b/homeassistant/components/automation/__init__.py @@ -408,7 +408,7 @@ class BaseAutomationEntity(ToggleEntity, ABC): class UnavailableAutomationEntity(BaseAutomationEntity): """A non-functional automation entity with its state set to unavailable. - This class is instatiated when an automation fails to validate. + This class is instantiated when an automation fails to validate. """ _attr_should_poll = False diff --git a/homeassistant/components/ccm15/climate.py b/homeassistant/components/ccm15/climate.py index e364bf0af5c..b4038fbbf43 100644 --- a/homeassistant/components/ccm15/climate.py +++ b/homeassistant/components/ccm15/climate.py @@ -132,7 +132,7 @@ class CCM15Climate(CoordinatorEntity[CCM15Coordinator], ClimateEntity): @property def available(self) -> bool: - """Return the avalability of the entity.""" + """Return the availability of the entity.""" return self.data is not None @property diff --git a/homeassistant/components/cloud/google_config.py b/homeassistant/components/cloud/google_config.py index c7ac0acd986..991ac88a44f 100644 --- a/homeassistant/components/cloud/google_config.py +++ b/homeassistant/components/cloud/google_config.py @@ -177,7 +177,7 @@ class CloudGoogleConfig(AbstractConfig): def get_local_user_id(self, webhook_id: Any) -> str: """Map webhook ID to a Home Assistant user ID. - Any action inititated by Google Assistant via the local SDK will be attributed + Any action initiated by Google Assistant via the local SDK will be attributed to the returned user ID. """ return self._user diff --git a/homeassistant/components/fjaraskupan/fan.py b/homeassistant/components/fjaraskupan/fan.py index 194a3c1d251..67514eaa411 100644 --- a/homeassistant/components/fjaraskupan/fan.py +++ b/homeassistant/components/fjaraskupan/fan.py @@ -86,7 +86,7 @@ class Fan(CoordinatorEntity[FjaraskupanCoordinator], FanEntity): async def async_set_percentage(self, percentage: int) -> None: """Set speed.""" - # Proactively update percentage to mange successive increases + # Proactively update percentage to manage successive increases self._percentage = percentage async with self.coordinator.async_connect_and_update() as device: diff --git a/homeassistant/components/google_assistant/helpers.py b/homeassistant/components/google_assistant/helpers.py index 4d0cedc5311..7f8f7a68ffa 100644 --- a/homeassistant/components/google_assistant/helpers.py +++ b/homeassistant/components/google_assistant/helpers.py @@ -165,7 +165,7 @@ class AbstractConfig(ABC): def get_local_user_id(self, webhook_id): """Map webhook ID to a Home Assistant user ID. - Any action inititated by Google Assistant via the local SDK will be attributed + Any action initiated by Google Assistant via the local SDK will be attributed to the returned user ID. Return None if no user id is found for the webhook_id. diff --git a/homeassistant/components/google_assistant/http.py b/homeassistant/components/google_assistant/http.py index 580d0e4a749..95c5bafc2cc 100644 --- a/homeassistant/components/google_assistant/http.py +++ b/homeassistant/components/google_assistant/http.py @@ -124,7 +124,7 @@ class GoogleConfig(AbstractConfig): def get_local_user_id(self, webhook_id): """Map webhook ID to a Home Assistant user ID. - Any action inititated by Google Assistant via the local SDK will be attributed + Any action initiated by Google Assistant via the local SDK will be attributed to the returned user ID. Return None if no user id is found for the webhook_id. diff --git a/homeassistant/components/home_connect/switch.py b/homeassistant/components/home_connect/switch.py index 6dc308ac022..1239395af2b 100644 --- a/homeassistant/components/home_connect/switch.py +++ b/homeassistant/components/home_connect/switch.py @@ -92,7 +92,7 @@ class HomeConnectPowerSwitch(HomeConnectEntity, SwitchEntity): """Power switch class for Home Connect.""" def __init__(self, device): - """Inititialize the entity.""" + """Initialize the entity.""" super().__init__(device, "Power") async def async_turn_on(self, **kwargs: Any) -> None: diff --git a/homeassistant/components/image/media_source.py b/homeassistant/components/image/media_source.py index 5543ab2e887..e7f240aef5c 100644 --- a/homeassistant/components/image/media_source.py +++ b/homeassistant/components/image/media_source.py @@ -1,4 +1,4 @@ -"""Expose iamges as media sources.""" +"""Expose images as media sources.""" from __future__ import annotations diff --git a/homeassistant/components/insteon/api/properties.py b/homeassistant/components/insteon/api/properties.py index 80a76e482e5..7fac5439f56 100644 --- a/homeassistant/components/insteon/api/properties.py +++ b/homeassistant/components/insteon/api/properties.py @@ -74,7 +74,7 @@ def _read_only_schema(name, value): def get_schema(prop, name, groups): - """Return the correct shema type.""" + """Return the correct schema type.""" if prop.is_read_only: return _read_only_schema(name, prop.value) if name == RAMP_RATE_IN_SEC: diff --git a/homeassistant/components/nest/config_flow.py b/homeassistant/components/nest/config_flow.py index 092d6fe1f22..7b5f5d2c5fb 100644 --- a/homeassistant/components/nest/config_flow.py +++ b/homeassistant/components/nest/config_flow.py @@ -173,7 +173,7 @@ class NestFlowHandler( async def async_step_create_cloud_project( self, user_input: dict[str, Any] | None = None ) -> ConfigFlowResult: - """Handle initial step in app credentails flow.""" + """Handle initial step in app credentials flow.""" implementations = await config_entry_oauth2_flow.async_get_implementations( self.hass, self.DOMAIN ) diff --git a/homeassistant/components/nexia/binary_sensor.py b/homeassistant/components/nexia/binary_sensor.py index 51306584b7a..9b3d9cab986 100644 --- a/homeassistant/components/nexia/binary_sensor.py +++ b/homeassistant/components/nexia/binary_sensor.py @@ -41,7 +41,7 @@ async def async_setup_entry( class NexiaBinarySensor(NexiaThermostatEntity, BinarySensorEntity): - """Provices Nexia BinarySensor support.""" + """Provides Nexia BinarySensor support.""" def __init__(self, coordinator, thermostat, sensor_call, translation_key): """Initialize the nexia sensor.""" diff --git a/homeassistant/components/rfxtrx/config_flow.py b/homeassistant/components/rfxtrx/config_flow.py index aba6c08b06a..837ca554615 100644 --- a/homeassistant/components/rfxtrx/config_flow.py +++ b/homeassistant/components/rfxtrx/config_flow.py @@ -74,7 +74,7 @@ class DeviceData(TypedDict): def none_or_int(value: str | None, base: int) -> int | None: - """Check if strin is one otherwise convert to int.""" + """Check if string is one otherwise convert to int.""" if value is None: return None return int(value, base) diff --git a/homeassistant/components/roon/config_flow.py b/homeassistant/components/roon/config_flow.py index cb70187b988..d24cdb0c98d 100644 --- a/homeassistant/components/roon/config_flow.py +++ b/homeassistant/components/roon/config_flow.py @@ -155,7 +155,7 @@ class RoonConfigFlow(ConfigFlow, domain=DOMAIN): ) async def async_step_link(self, user_input=None): - """Handle linking and authenticting with the roon server.""" + """Handle linking and authenticating with the roon server.""" errors = {} if user_input is not None: # Do not authenticate if the host is already configured diff --git a/homeassistant/components/script/__init__.py b/homeassistant/components/script/__init__.py index 954100c3a71..79ed69d2cdf 100644 --- a/homeassistant/components/script/__init__.py +++ b/homeassistant/components/script/__init__.py @@ -447,7 +447,7 @@ class BaseScriptEntity(ToggleEntity, ABC): class UnavailableScriptEntity(BaseScriptEntity): """A non-functional script entity with its state set to unavailable. - This class is instatiated when an script fails to validate. + This class is instantiated when an script fails to validate. """ _attr_should_poll = False diff --git a/homeassistant/components/synology_dsm/__init__.py b/homeassistant/components/synology_dsm/__init__.py index 853459b00aa..a0c3a10774f 100644 --- a/homeassistant/components/synology_dsm/__init__.py +++ b/homeassistant/components/synology_dsm/__init__.py @@ -41,7 +41,7 @@ _LOGGER = logging.getLogger(__name__) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Synology DSM sensors.""" - # Migrate device indentifiers + # Migrate device identifiers dev_reg = dr.async_get(hass) devices: list[dr.DeviceEntry] = dr.async_entries_for_config_entry( dev_reg, entry.entry_id diff --git a/homeassistant/components/tado/const.py b/homeassistant/components/tado/const.py index 6f32eb1a05c..c62352a6d95 100644 --- a/homeassistant/components/tado/const.py +++ b/homeassistant/components/tado/const.py @@ -102,7 +102,7 @@ CONST_EXCLUSIVE_OVERLAY_GROUP = ( # Heat always comes first since we get the -# min and max tempatures for the zone from +# min and max temperatures for the zone from # it. # Heat is preferred as it generally has a lower minimum temperature ORDERED_KNOWN_TADO_MODES = [ diff --git a/homeassistant/components/teslemetry/sensor.py b/homeassistant/components/teslemetry/sensor.py index 7e6a35d03e1..6284a0e5368 100644 --- a/homeassistant/components/teslemetry/sensor.py +++ b/homeassistant/components/teslemetry/sensor.py @@ -476,7 +476,7 @@ class TeslemetryVehicleTimeSensorEntity(TeslemetryVehicleEntity, SensorEntity): @property def available(self) -> bool: - """Return the avaliability of the sensor.""" + """Return the availability of the sensor.""" return isinstance(self._value, int | float) and self._value > 0 diff --git a/homeassistant/components/trace/__init__.py b/homeassistant/components/trace/__init__.py index a7ad576e53d..17fdf20368a 100644 --- a/homeassistant/components/trace/__init__.py +++ b/homeassistant/components/trace/__init__.py @@ -175,7 +175,7 @@ async def async_restore_traces(hass: HomeAssistant) -> None: restored_traces = {} for key, traces in restored_traces.items(): - # Add stored traces in reversed order to priorize the newest traces + # Add stored traces in reversed order to prioritize the newest traces for json_trace in reversed(traces): if ( (stored_traces := _get_data(hass).get(key)) diff --git a/homeassistant/components/velbus/__init__.py b/homeassistant/components/velbus/__init__.py index 931888d0f99..ea03c4b15f1 100644 --- a/homeassistant/components/velbus/__init__.py +++ b/homeassistant/components/velbus/__init__.py @@ -54,7 +54,7 @@ async def velbus_connect_task( def _migrate_device_identifiers(hass: HomeAssistant, entry_id: str) -> None: - """Migrate old device indentifiers.""" + """Migrate old device identifiers.""" dev_reg = dr.async_get(hass) devices: list[dr.DeviceEntry] = dr.async_entries_for_config_entry(dev_reg, entry_id) for device in devices: diff --git a/homeassistant/components/xiaomi_aqara/config_flow.py b/homeassistant/components/xiaomi_aqara/config_flow.py index 7021b27e187..8f391c8ddf3 100644 --- a/homeassistant/components/xiaomi_aqara/config_flow.py +++ b/homeassistant/components/xiaomi_aqara/config_flow.py @@ -204,7 +204,7 @@ class XiaomiAqaraFlowHandler(ConfigFlow, domain=DOMAIN): valid_key = True if valid_key: - # format_mac, for a gateway the sid equels the mac address + # format_mac, for a gateway the sid equals the mac address mac_address = format_mac(self.sid) # set unique_id diff --git a/homeassistant/components/zwave_js/api.py b/homeassistant/components/zwave_js/api.py index b4c8967f0ad..dfb7442d678 100644 --- a/homeassistant/components/zwave_js/api.py +++ b/homeassistant/components/zwave_js/api.py @@ -2339,7 +2339,7 @@ async def websocket_subscribe_controller_statistics( client: Client, driver: Driver, ) -> None: - """Subsribe to the statistics updates for a controller.""" + """Subscribe to the statistics updates for a controller.""" @callback def async_cleanup() -> None: @@ -2434,7 +2434,7 @@ async def websocket_subscribe_node_statistics( msg: dict[str, Any], node: Node, ) -> None: - """Subsribe to the statistics updates for a node.""" + """Subscribe to the statistics updates for a node.""" @callback def async_cleanup() -> None: diff --git a/tests/components/calendar/test_trigger.py b/tests/components/calendar/test_trigger.py index 6f0ccdece28..050329cd855 100644 --- a/tests/components/calendar/test_trigger.py +++ b/tests/components/calendar/test_trigger.py @@ -57,7 +57,7 @@ class FakeSchedule: """Test fixture class for return events in a specific date range.""" def __init__(self, hass: HomeAssistant, freezer: FrozenDateTimeFactory) -> None: - """Initiailize FakeSchedule.""" + """Initialize FakeSchedule.""" self.hass = hass self.freezer = freezer diff --git a/tests/components/fritz/test_sensor.py b/tests/components/fritz/test_sensor.py index 8ca7b510412..4427fc6961e 100644 --- a/tests/components/fritz/test_sensor.py +++ b/tests/components/fritz/test_sensor.py @@ -100,7 +100,7 @@ SENSOR_STATES: dict[str, dict[str, Any]] = { async def test_sensor_setup(hass: HomeAssistant, fc_class_mock, fh_class_mock) -> None: - """Test setup of Fritz!Tools sesnors.""" + """Test setup of Fritz!Tools sensors.""" entry = MockConfigEntry(domain=DOMAIN, data=MOCK_USER_DATA) entry.add_to_hass(hass) @@ -124,7 +124,7 @@ async def test_sensor_setup(hass: HomeAssistant, fc_class_mock, fh_class_mock) - async def test_sensor_update_fail( hass: HomeAssistant, fc_class_mock, fh_class_mock ) -> None: - """Test failed update of Fritz!Tools sesnors.""" + """Test failed update of Fritz!Tools sensors.""" entry = MockConfigEntry(domain=DOMAIN, data=MOCK_USER_DATA) entry.add_to_hass(hass) diff --git a/tests/components/hassio/test_ingress.py b/tests/components/hassio/test_ingress.py index f6eeecd5f90..27e99f7f596 100644 --- a/tests/components/hassio/test_ingress.py +++ b/tests/components/hassio/test_ingress.py @@ -310,7 +310,7 @@ async def test_ingress_missing_peername( aioclient_mock: AiohttpClientMocker, caplog: pytest.LogCaptureFixture, ) -> None: - """Test hadnling of missing peername.""" + """Test handling of missing peername.""" aioclient_mock.get( "http://127.0.0.1/ingress/lorem/ipsum", text="test", diff --git a/tests/components/homekit/test_type_thermostats.py b/tests/components/homekit/test_type_thermostats.py index 5bcfe1c2038..ca2a02cb440 100644 --- a/tests/components/homekit/test_type_thermostats.py +++ b/tests/components/homekit/test_type_thermostats.py @@ -1959,7 +1959,7 @@ async def test_thermostat_with_no_off_after_recheck( async def test_thermostat_with_temp_clamps( hass: HomeAssistant, hk_driver, events ) -> None: - """Test that tempatures are clamped to valid values to prevent homekit crash.""" + """Test that temperatures are clamped to valid values to prevent homekit crash.""" entity_id = "climate.test" base_attrs = { ATTR_SUPPORTED_FEATURES: ClimateEntityFeature.TARGET_TEMPERATURE diff --git a/tests/components/mystrom/test_init.py b/tests/components/mystrom/test_init.py index f849fec7477..0c49eecf88d 100644 --- a/tests/components/mystrom/test_init.py +++ b/tests/components/mystrom/test_init.py @@ -26,7 +26,7 @@ async def init_integration( config_entry: MockConfigEntry, device_type: int, ) -> None: - """Inititialize integration for testing.""" + """Initialize integration for testing.""" with patch( "pymystrom.get_device_info", side_effect=AsyncMock(return_value=get_default_device_response(device_type)), diff --git a/tests/components/nest/test_api.py b/tests/components/nest/test_api.py index 31f5d03dc2b..3e0932c607d 100644 --- a/tests/components/nest/test_api.py +++ b/tests/components/nest/test_api.py @@ -3,7 +3,7 @@ There are two interesting cases to exercise that have different strategies for token refresh and for testing: - API based requests, tested using aioclient_mock -- Pub/sub subcriber initialization, intercepted with patch() +- Pub/sub subscriber initialization, intercepted with patch() The tests below exercise both cases during integration setup. """ @@ -75,7 +75,7 @@ async def test_auth( (method, url, data, headers) = calls[1] assert headers == {"Authorization": f"Bearer {FAKE_TOKEN}"} - # Verify the susbcriber was created with the correct credentials + # Verify the subscriber was created with the correct credentials assert len(new_subscriber_mock.mock_calls) == 1 assert captured_creds creds = captured_creds diff --git a/tests/components/nest/test_init.py b/tests/components/nest/test_init.py index 082f40094aa..2f11aed7969 100644 --- a/tests/components/nest/test_init.py +++ b/tests/components/nest/test_init.py @@ -161,7 +161,7 @@ async def test_subscriber_auth_failure( async def test_setup_missing_subscriber_id( hass: HomeAssistant, warning_caplog, setup_base_platform ) -> None: - """Test missing susbcriber id from configuration.""" + """Test missing subscriber id from configuration.""" await setup_base_platform() assert "Configuration option" in warning_caplog.text diff --git a/tests/components/recorder/test_filters_with_entityfilter.py b/tests/components/recorder/test_filters_with_entityfilter.py index d888a1de52e..1ee127a9989 100644 --- a/tests/components/recorder/test_filters_with_entityfilter.py +++ b/tests/components/recorder/test_filters_with_entityfilter.py @@ -536,7 +536,7 @@ async def test_same_entity_included_excluded_include_domain_wins( async def test_specificly_included_entity_always_wins( recorder_mock: Recorder, hass: HomeAssistant ) -> None: - """Test specificlly included entity always wins.""" + """Test specifically included entity always wins.""" filter_accept = { "media_player.test2", "media_player.test3", @@ -586,7 +586,7 @@ async def test_specificly_included_entity_always_wins( async def test_specificly_included_entity_always_wins_over_glob( recorder_mock: Recorder, hass: HomeAssistant ) -> None: - """Test specificlly included entity always wins over a glob.""" + """Test specifically included entity always wins over a glob.""" filter_accept = { "sensor.apc900va_status", "sensor.apc900va_battery_charge", diff --git a/tests/components/recorder/test_filters_with_entityfilter_schema_37.py b/tests/components/recorder/test_filters_with_entityfilter_schema_37.py index 6794827bd6a..f5eec10f805 100644 --- a/tests/components/recorder/test_filters_with_entityfilter_schema_37.py +++ b/tests/components/recorder/test_filters_with_entityfilter_schema_37.py @@ -553,7 +553,7 @@ async def test_same_entity_included_excluded_include_domain_wins( async def test_specificly_included_entity_always_wins( legacy_recorder_mock: Recorder, hass: HomeAssistant ) -> None: - """Test specificlly included entity always wins.""" + """Test specifically included entity always wins.""" filter_accept = { "media_player.test2", "media_player.test3", @@ -603,7 +603,7 @@ async def test_specificly_included_entity_always_wins( async def test_specificly_included_entity_always_wins_over_glob( legacy_recorder_mock: Recorder, hass: HomeAssistant ) -> None: - """Test specificlly included entity always wins over a glob.""" + """Test specifically included entity always wins over a glob.""" filter_accept = { "sensor.apc900va_status", "sensor.apc900va_battery_charge", diff --git a/tests/components/recorder/test_init.py b/tests/components/recorder/test_init.py index f28e379a0c4..3154ebf7ffc 100644 --- a/tests/components/recorder/test_init.py +++ b/tests/components/recorder/test_init.py @@ -2067,7 +2067,7 @@ def test_deduplication_state_attributes_inside_commit_interval( hass.states.set(entity_id, "on", attributes) hass.states.set(entity_id, "off", attributes) - # Now exaust the cache to ensure we go back to the db + # Now exhaust the cache to ensure we go back to the db for attr_id in range(5): hass.states.set(entity_id, "on", {"test_attr": attr_id}) hass.states.set(entity_id, "off", {"test_attr": attr_id}) diff --git a/tests/components/script/test_init.py b/tests/components/script/test_init.py index 02587d7bc98..ba448230c35 100644 --- a/tests/components/script/test_init.py +++ b/tests/components/script/test_init.py @@ -1164,7 +1164,7 @@ async def test_script_variables( async def test_script_this_var_always( hass: HomeAssistant, caplog: pytest.LogCaptureFixture ) -> None: - """Test script always has reference to this, even with no variabls are configured.""" + """Test script always has reference to this, even with no variables are configured.""" assert await async_setup_component( hass, diff --git a/tests/components/valve/test_init.py b/tests/components/valve/test_init.py index 23071718724..a00d975f0eb 100644 --- a/tests/components/valve/test_init.py +++ b/tests/components/valve/test_init.py @@ -118,7 +118,7 @@ class MockBinaryValveEntity(ValveEntity): self._attr_is_closed = False def close_valve(self) -> None: - """Mock implementantion for sync close function.""" + """Mock implementation for sync close function.""" self._attr_is_closed = True diff --git a/tests/components/wemo/entity_test_helpers.py b/tests/components/wemo/entity_test_helpers.py index f999de408c0..fd2bbed4371 100644 --- a/tests/components/wemo/entity_test_helpers.py +++ b/tests/components/wemo/entity_test_helpers.py @@ -124,7 +124,7 @@ async def test_async_update_locked_multiple_callbacks( async def test_avaliable_after_update( hass: HomeAssistant, pywemo_registry, pywemo_device, wemo_entity, domain ) -> None: - """Test the avaliability when an On call fails and after an update. + """Test the availability when an On call fails and after an update. This test expects that the pywemo_device Mock has been setup to raise an ActionException when the SERVICE_TURN_ON method is called and that the diff --git a/tests/components/wemo/test_fan.py b/tests/components/wemo/test_fan.py index 7a1bb2c628b..625007a744d 100644 --- a/tests/components/wemo/test_fan.py +++ b/tests/components/wemo/test_fan.py @@ -90,7 +90,7 @@ async def test_fan_update_entity( async def test_available_after_update( hass: HomeAssistant, pywemo_registry, pywemo_device, wemo_entity ) -> None: - """Test the avaliability when an On call fails and after an update.""" + """Test the availability when an On call fails and after an update.""" pywemo_device.set_state.side_effect = ActionException pywemo_device.get_state.return_value = 1 await entity_test_helpers.test_avaliable_after_update( diff --git a/tests/components/wemo/test_light_bridge.py b/tests/components/wemo/test_light_bridge.py index 149fb13d023..48be2823750 100644 --- a/tests/components/wemo/test_light_bridge.py +++ b/tests/components/wemo/test_light_bridge.py @@ -85,7 +85,7 @@ async def test_available_after_update( pywemo_bridge_light, wemo_entity, ) -> None: - """Test the avaliability when an On call fails and after an update.""" + """Test the availability when an On call fails and after an update.""" pywemo_bridge_light.turn_on.side_effect = pywemo.exceptions.ActionException pywemo_bridge_light.state["onoff"] = 1 await entity_test_helpers.test_avaliable_after_update( diff --git a/tests/components/wemo/test_light_dimmer.py b/tests/components/wemo/test_light_dimmer.py index 96d27b56963..a2f69ea57d5 100644 --- a/tests/components/wemo/test_light_dimmer.py +++ b/tests/components/wemo/test_light_dimmer.py @@ -38,7 +38,7 @@ test_async_update_locked_callback_and_update = ( async def test_available_after_update( hass: HomeAssistant, pywemo_registry, pywemo_device, wemo_entity ) -> None: - """Test the avaliability when an On call fails and after an update.""" + """Test the availability when an On call fails and after an update.""" pywemo_device.on.side_effect = ActionException pywemo_device.get_state.return_value = 1 await entity_test_helpers.test_avaliable_after_update( diff --git a/tests/components/wemo/test_switch.py b/tests/components/wemo/test_switch.py index b73844bdb58..ab60f290727 100644 --- a/tests/components/wemo/test_switch.py +++ b/tests/components/wemo/test_switch.py @@ -103,7 +103,7 @@ async def test_switch_update_entity( async def test_available_after_update( hass: HomeAssistant, pywemo_registry, pywemo_device, wemo_entity ) -> None: - """Test the avaliability when an On call fails and after an update.""" + """Test the availability when an On call fails and after an update.""" pywemo_device.on.side_effect = pywemo.exceptions.ActionException pywemo_device.get_state.return_value = 1 await entity_test_helpers.test_avaliable_after_update( diff --git a/tests/helpers/test_condition.py b/tests/helpers/test_condition.py index 44a360af215..1b279fd0f51 100644 --- a/tests/helpers/test_condition.py +++ b/tests/helpers/test_condition.py @@ -3397,7 +3397,7 @@ async def test_disabled_condition(hass: HomeAssistant) -> None: hass.states.async_set("binary_sensor.test", "on") assert test(hass) is None - # Still passses, condition is not enabled + # Still passes, condition is not enabled hass.states.async_set("binary_sensor.test", "off") assert test(hass) is None