From c1045d6c821c0d02186c0d40e094b6f3b173deb6 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 25 Jun 2023 18:54:02 -0500 Subject: [PATCH] Fix hass_storage not clearing task (#95209) hass_storage would never allow another load if the no data path was hit discovered while writing tests for https://github.com/home-assistant/core/pull/95202 --- tests/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/common.py b/tests/common.py index 512bdeef594..ab5c39f5cd1 100644 --- a/tests/common.py +++ b/tests/common.py @@ -1218,6 +1218,8 @@ def mock_storage( if store._data is None: # No data to load if store.key not in data: + # Make sure the next attempt will still load + store._load_task = None return None mock_data = data.get(store.key)