From 3ee7e465b9b9862fbbbf1804ab3953e639605b66 Mon Sep 17 00:00:00 2001 From: basbruss <68892092+basbruss@users.noreply.github.com> Date: Wed, 20 Mar 2024 14:09:36 +0100 Subject: [PATCH] Fix blueprint not added --- custom_components/adaptive_cover/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))