Make Store a generic class (#74617)
This commit is contained in:
parent
d37ad20894
commit
16900dcef1
27 changed files with 106 additions and 97 deletions
|
@ -16,7 +16,7 @@ LEGACY_UUID_FILE = ".uuid"
|
|||
@singleton.singleton(DATA_KEY)
|
||||
async def async_get(hass: HomeAssistant) -> str:
|
||||
"""Get unique ID for the hass instance."""
|
||||
store = storage.Store(hass, DATA_VERSION, DATA_KEY, True)
|
||||
store = storage.Store[dict[str, str]](hass, DATA_VERSION, DATA_KEY, True)
|
||||
|
||||
data: dict[str, str] | None = await storage.async_migrator(
|
||||
hass,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue