From 1f74451adf49230b550020bac90b0a007a908581 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Sun, 3 May 2026 22:17:02 +0000 Subject: [PATCH] chore(blueprints): disable automatic blueprint installation Blueprints are kept in the repository for development but are not yet ready for distribution. Commented out the install and remove calls in async_setup and async_remove_entry so they are not copied to the user's HA config directory on integration setup. Release-Notes: skip User-Impact: none --- custom_components/tibber_prices/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/custom_components/tibber_prices/__init__.py b/custom_components/tibber_prices/__init__.py index 0d0e003..7c320b1 100644 --- a/custom_components/tibber_prices/__init__.py +++ b/custom_components/tibber_prices/__init__.py @@ -169,8 +169,8 @@ async def async_setup(hass: HomeAssistant, config: dict[str, Any]) -> bool: LOGGER.debug("No chart_metadata configuration found in configuration.yaml") hass.data[DOMAIN][DATA_CHART_METADATA_CONFIG] = {} - # Install/update bundled blueprints - await hass.async_add_executor_job(_install_blueprints, hass.config.config_dir) + # Blueprints are kept in the repo but not distributed yet. + # await hass.async_add_executor_job(_install_blueprints, hass.config.config_dir) return True @@ -418,10 +418,10 @@ async def async_remove_entry( await async_remove_pool_storage(hass, entry.entry_id) LOGGER.debug(f"[tibber_prices] async_remove_entry removed interval pool storage for entry_id={entry.entry_id}") - # Remove bundled blueprints if this was the last config entry - remaining = [e for e in hass.config_entries.async_entries(DOMAIN) if e.entry_id != entry.entry_id] - if not remaining: - await hass.async_add_executor_job(_remove_blueprints, hass.config.config_dir) + # Blueprints are kept in the repo but not distributed yet. + # remaining = [e for e in hass.config_entries.async_entries(DOMAIN) if e.entry_id != entry.entry_id] + # if not remaining: + # await hass.async_add_executor_job(_remove_blueprints, hass.config.config_dir) async def async_reload_entry(