mirror of
https://github.com/home-assistant/core.git
synced 2026-02-15 07:36:16 +00:00
Save restore_state store in worker thread
This commit is contained in:
@@ -119,7 +119,11 @@ class RestoreStateData:
|
||||
"""Initialize the restore state data class."""
|
||||
self.hass: HomeAssistant = hass
|
||||
self.store = Store[list[dict[str, Any]]](
|
||||
hass, STORAGE_VERSION, STORAGE_KEY, encoder=JSONEncoder
|
||||
hass,
|
||||
STORAGE_VERSION,
|
||||
STORAGE_KEY,
|
||||
encoder=JSONEncoder,
|
||||
serialize_in_event_loop=False,
|
||||
)
|
||||
self.last_states: dict[str, StoredState] = {}
|
||||
self.entities: dict[str, RestoreEntity] = {}
|
||||
|
||||
Reference in New Issue
Block a user