diff --git a/tests/components/airly/test_init.py b/tests/components/airly/test_init.py index 434c7e5022f..c8ad6782ce8 100644 --- a/tests/components/airly/test_init.py +++ b/tests/components/airly/test_init.py @@ -95,10 +95,10 @@ async def test_config_with_turned_off_station(hass, aioclient_mock): async def test_update_interval(hass, aioclient_mock): """Test correct update interval when the number of configured instances changes.""" - REMAINING_RQUESTS = 15 + REMAINING_REQUESTS = 15 HEADERS = { "X-RateLimit-Limit-day": "100", - "X-RateLimit-Remaining-day": str(REMAINING_RQUESTS), + "X-RateLimit-Remaining-day": str(REMAINING_REQUESTS), } entry = MockConfigEntry( @@ -127,7 +127,7 @@ async def test_update_interval(hass, aioclient_mock): assert len(hass.config_entries.async_entries(DOMAIN)) == 1 assert entry.state is ConfigEntryState.LOADED - update_interval = set_update_interval(instances, REMAINING_RQUESTS) + update_interval = set_update_interval(instances, REMAINING_REQUESTS) future = utcnow() + update_interval with patch("homeassistant.util.dt.utcnow") as mock_utcnow: mock_utcnow.return_value = future @@ -164,7 +164,7 @@ async def test_update_interval(hass, aioclient_mock): assert len(hass.config_entries.async_entries(DOMAIN)) == 2 assert entry.state is ConfigEntryState.LOADED - update_interval = set_update_interval(instances, REMAINING_RQUESTS) + update_interval = set_update_interval(instances, REMAINING_REQUESTS) future = utcnow() + update_interval mock_utcnow.return_value = future async_fire_time_changed(hass, future) diff --git a/tests/components/airly/test_sensor.py b/tests/components/airly/test_sensor.py index 2c53ce36d1b..3e8206aa76e 100644 --- a/tests/components/airly/test_sensor.py +++ b/tests/components/airly/test_sensor.py @@ -158,7 +158,7 @@ async def test_availability(hass, aioclient_mock): async def test_manual_update_entity(hass, aioclient_mock): - """Test manual update entity via service homeasasistant/update_entity.""" + """Test manual update entity via service homeassistant/update_entity.""" await init_integration(hass, aioclient_mock) call_count = aioclient_mock.call_count