Skip to content

Commit d0260b6

Browse files
authored
Shut down the coordinator after tests to avoid lingering timer exceptions (#424)
1 parent 9e3f448 commit d0260b6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_coordinator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,3 +234,5 @@ async def test_group5_entity_request_enable(
234234
await entities[1].async_will_remove_from_hass()
235235
assert coordinator._group5_entities == 0
236236
assert device.enable_group5_data_requests == False
237+
238+
await coordinator.async_shutdown()

tests/test_sensor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ async def test_energy_sensor_request_enable(
5858
await sensors[1].async_will_remove_from_hass()
5959
assert coordinator._energy_sensors == 0
6060
assert device.enable_energy_usage_requests == False
61+
62+
await coordinator.async_shutdown()

0 commit comments

Comments
 (0)