Migrate homekit_controller tests to use freezegun (#105646)

This commit is contained in:
Jan-Philipp Benecke 2023-12-13 19:37:51 +01:00 committed by GitHub
parent 08ca3678da
commit d322cb5fdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 152 additions and 197 deletions

View file

@ -46,7 +46,7 @@ def create_motion_sensor_service(accessory):
cur_state.value = 0
async def test_unload_on_stop(hass: HomeAssistant, utcnow) -> None:
async def test_unload_on_stop(hass: HomeAssistant) -> None:
"""Test async_unload is called on stop."""
await setup_test_component(hass, create_motion_sensor_service)
with patch(