From b87036eebe0a43912ac112d43000d6fc533ff078 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 11 Mar 2024 14:25:15 -1000 Subject: [PATCH] Make restore state started a callback function (#113110) --- homeassistant/helpers/restore_state.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/restore_state.py b/homeassistant/helpers/restore_state.py index d0ef3acd426..2d6ffb9ec49 100644 --- a/homeassistant/helpers/restore_state.py +++ b/homeassistant/helpers/restore_state.py @@ -144,7 +144,8 @@ class RestoreStateData: """Set up up the instance of this data helper.""" await self.async_load() - async def hass_start(hass: HomeAssistant) -> None: + @callback + def hass_start(hass: HomeAssistant) -> None: """Start the restore state task.""" self.async_setup_dump()