Skip to content

Commit

Permalink
Shutdown history on exam exit
Browse files Browse the repository at this point in the history
  • Loading branch information
rgc99 committed Nov 22, 2023
1 parent 59cfe53 commit 1d18b62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions tests/iu_test_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion tests/test_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,4 +674,3 @@ def service_history(entity_ids: set[str]) -> None:
}
finally:
exam.coordinator.history._callback = callback_save
exam.coordinator.history.finalise()

0 comments on commit 1d18b62

Please sign in to comment.