Remove migration of config entry data pre version 0.73 (#117345)

This commit is contained in:
Erik Montnemery 2024-05-13 09:39:04 +02:00 committed by GitHub
parent 84cc650bb3
commit b09565b4ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,9 +118,6 @@ HANDLERS: Registry[str, type[ConfigFlow]] = Registry()
STORAGE_KEY = "core.config_entries"
STORAGE_VERSION = 1
# Deprecated since 0.73
PATH_CONFIG = ".config_entries.json"
SAVE_DELAY = 1
DISCOVERY_COOLDOWN = 1
@ -1711,13 +1708,7 @@ class ConfigEntries:
async def async_initialize(self) -> None:
"""Initialize config entry config."""
# Migrating for config entries stored before 0.73
config = await storage.async_migrator(
self.hass,
self.hass.config.path(PATH_CONFIG),
self._store,
old_conf_migrate_func=_old_conf_migrator,
)
config = await self._store.async_load()
self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, self._async_shutdown)
@ -2107,11 +2098,6 @@ class ConfigEntries:
return entry.state == ConfigEntryState.LOADED
async def _old_conf_migrator(old_config: dict[str, Any]) -> dict[str, Any]:
"""Migrate the pre-0.73 config format to the latest version."""
return {"entries": old_config}
@callback
def _async_abort_entries_match(
other_entries: list[ConfigEntry], match_dict: dict[str, Any] | None = None