From 65e8bdbd15a742fa5a9202b0ed16133787850b7b Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Mon, 3 Nov 2025 00:03:58 +0000 Subject: [PATCH] fix --- custom_components/tibber_prices/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/tibber_prices/__init__.py b/custom_components/tibber_prices/__init__.py index 55863ea..106ce58 100644 --- a/custom_components/tibber_prices/__init__.py +++ b/custom_components/tibber_prices/__init__.py @@ -67,11 +67,10 @@ async def async_setup_entry( # https://developers.home-assistant.io/docs/integration_fetching_data#coordinated-single-api-poll-for-data-for-all-entities if entry.state == ConfigEntryState.SETUP_IN_PROGRESS: await coordinator.async_config_entry_first_refresh() + entry.async_on_unload(entry.add_update_listener(async_reload_entry)) else: await coordinator.async_refresh() - entry.async_on_unload(entry.add_update_listener(async_reload_entry)) - await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) return True