diff --git a/tests/components/gdacs/test_geo_location.py b/tests/components/gdacs/test_geo_location.py index 9fd8c5c0134..c7f5a0f72e3 100644 --- a/tests/components/gdacs/test_geo_location.py +++ b/tests/components/gdacs/test_geo_location.py @@ -97,10 +97,10 @@ async def test_setup( ) as mock_feed_update: mock_feed_update.return_value = "OK", [mock_entry_1, mock_entry_2, mock_entry_3] + config_entry.add_to_hass(hass) hass.config_entries.async_update_entry( config_entry, data=config_entry.data | CONFIG ) - config_entry.add_to_hass(hass) assert await hass.config_entries.async_setup(config_entry.entry_id) # Artificially trigger update and collect events. hass.bus.async_fire(EVENT_HOMEASSISTANT_START) @@ -232,10 +232,10 @@ async def test_setup_imperial( "aio_georss_client.feed.GeoRssFeed.last_timestamp", create=True ): mock_feed_update.return_value = "OK", [mock_entry_1] + config_entry.add_to_hass(hass) hass.config_entries.async_update_entry( config_entry, data=config_entry.data | CONFIG ) - config_entry.add_to_hass(hass) assert await hass.config_entries.async_setup( config_entry.entry_id ) # Artificially trigger update and collect events.