Bump entity_registry store version to 1.2 (#59912)

* Bump entity_registry store version to 1.2

* Migrate also when importing yaml

* Adjust tests

* Satisfy pylint

* Fix typing
This commit is contained in:
Erik Montnemery
2021-11-19 14:25:34 +01:00
committed by GitHub
parent 45d41e584f
commit c557da028a
4 changed files with 84 additions and 32 deletions

View File

@@ -18,7 +18,7 @@ async def async_get(hass: HomeAssistant) -> str:
"""Get unique ID for the hass instance."""
store = storage.Store(hass, DATA_VERSION, DATA_KEY, True)
data: dict[str, str] | None = await storage.async_migrator( # type: ignore
data: dict[str, str] | None = await storage.async_migrator(
hass,
hass.config.path(LEGACY_UUID_FILE),
store,