diff --git a/tests/iu_test_support.py b/tests/iu_test_support.py index 00d546b..7267cb4 100644 --- a/tests/iu_test_support.py +++ b/tests/iu_test_support.py @@ -193,6 +193,7 @@ async def restore(self) -> None: if self._core_config_changed: await reset_hass_config(self._hass) self._core_config_changed = False + self._coordinator.history.finalise() _LOGGER.debug("Finished exam: %s", self.config_file_full) async def __aenter__(self): diff --git a/tests/test_history.py b/tests/test_history.py index a6adbeb..3c85fdb 100644 --- a/tests/test_history.py +++ b/tests/test_history.py @@ -674,4 +674,3 @@ def service_history(entity_ids: set[str]) -> None: } finally: exam.coordinator.history._callback = callback_save - exam.coordinator.history.finalise()