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
This commit is contained in:
Julian Pawlowski 2026-05-03 22:17:02 +00:00
parent c2ff9cd2f2
commit 1f74451adf

View file

@ -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") LOGGER.debug("No chart_metadata configuration found in configuration.yaml")
hass.data[DOMAIN][DATA_CHART_METADATA_CONFIG] = {} hass.data[DOMAIN][DATA_CHART_METADATA_CONFIG] = {}
# Install/update bundled blueprints # Blueprints are kept in the repo but not distributed yet.
await hass.async_add_executor_job(_install_blueprints, hass.config.config_dir) # await hass.async_add_executor_job(_install_blueprints, hass.config.config_dir)
return True return True
@ -418,10 +418,10 @@ async def async_remove_entry(
await async_remove_pool_storage(hass, entry.entry_id) 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}") 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 # 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] # remaining = [e for e in hass.config_entries.async_entries(DOMAIN) if e.entry_id != entry.entry_id]
if not remaining: # if not remaining:
await hass.async_add_executor_job(_remove_blueprints, hass.config.config_dir) # await hass.async_add_executor_job(_remove_blueprints, hass.config.config_dir)
async def async_reload_entry( async def async_reload_entry(