diff --git a/custom_components/adaptive_cover/__init__.py b/custom_components/adaptive_cover/__init__.py index 7f31516..4d6e09b 100644 --- a/custom_components/adaptive_cover/__init__.py +++ b/custom_components/adaptive_cover/__init__.py @@ -29,7 +29,6 @@ async def async_initialize_integration( ) -> bool: """Initialize the integration.""" - configure_blueprint(hass=hass, config_entry=config_entry) return True @@ -59,6 +58,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: await coordinator.async_config_entry_first_refresh() hass.data[DOMAIN][entry.entry_id] = coordinator + configure_blueprint(hass=hass, config_entry=entry) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS_SW) entry.async_on_unload(entry.add_update_listener(_async_update_listener))