1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Respect callback decorator in store helper async_delay_save (#157158)

This commit is contained in:
Erik Montnemery
2025-11-25 16:08:09 +01:00
committed by GitHub
parent 0c366506c5
commit 4c04dc00dd
5 changed files with 136 additions and 28 deletions

View File

@@ -1531,7 +1531,7 @@ def mock_storage(data: dict[str, Any] | None = None) -> Generator[dict[str, Any]
return loaded
async def mock_write_data(
store: storage.Store, path: str, data_to_write: dict[str, Any]
store: storage.Store, data_to_write: dict[str, Any]
) -> None:
"""Mock version of write data."""
# To ensure that the data can be serialized