This commit is contained in:
Home Assistant Version Control
2026-08-07 16:23:20 +00:00
parent 305e1b2545
commit baabdf0c0e
58 changed files with 678 additions and 109 deletions
@@ -938,8 +938,8 @@ class PreviousStateStore:
instance.states[group] = {
entity_id: State.from_dict(json_state) for (entity_id, json_state) in entities.items()
}
except HomeAssistantError as exc: # pragma: no cover
_LOGGER.error("Error loading previous energy sensor states", exc_info=exc)
except HomeAssistantError: # pragma: no cover
_LOGGER.exception("Error loading previous energy sensor states")
instance.async_setup_dump()
@@ -983,8 +983,8 @@ class PreviousStateStore:
"""Save the current states to storage."""
try:
await self.store.async_save(self.states)
except HomeAssistantError as exc: # pragma: no cover
_LOGGER.error("Error saving current states", exc_info=exc)
except HomeAssistantError: # pragma: no cover
_LOGGER.exception("Error saving current states")
@callback
def async_setup_dump(self) -> None: