Add State.last_reported (#113511)

* Add State.last_reported

* Update tests

* Update test snapshots

* Call state_reported listeners when firing state_changed event

* Add tests
This commit is contained in:
Erik Montnemery
2024-03-20 21:05:07 +01:00
committed by GitHub
parent e74791083e
commit 426f73b1f4
174 changed files with 1645 additions and 35 deletions

View File

@@ -265,6 +265,7 @@ async def test_snapshots(
state_dict = dict(state.as_dict())
state_dict.pop("context", None)
state_dict.pop("last_changed", None)
state_dict.pop("last_reported", None)
state_dict.pop("last_updated", None)
state_dict["attributes"] = dict(state_dict["attributes"])