@@ -218,7 +218,6 @@ async def test_coordinator_not_fetching_on_disconnected_appliance(
218
218
"""Test that the coordinator does not fetch anything on disconnected appliance."""
219
219
appliance .connected = False
220
220
221
- assert config_entry .state == ConfigEntryState .NOT_LOADED
222
221
await integration_setup (client )
223
222
assert config_entry .state == ConfigEntryState .LOADED
224
223
@@ -242,7 +241,6 @@ async def test_coordinator_update_failing(
242
241
"""
243
242
setattr (client , mock_method , AsyncMock (side_effect = HomeConnectError ()))
244
243
245
- assert config_entry .state == ConfigEntryState .NOT_LOADED
246
244
await integration_setup (client )
247
245
assert config_entry .state == ConfigEntryState .LOADED
248
246
@@ -286,7 +284,6 @@ async def test_event_listener(
286
284
entity_id : str ,
287
285
) -> None :
288
286
"""Test that the event listener works."""
289
- assert config_entry .state == ConfigEntryState .NOT_LOADED
290
287
await integration_setup (client )
291
288
assert config_entry .state == ConfigEntryState .LOADED
292
289
@@ -353,7 +350,6 @@ async def tests_receive_setting_and_status_for_first_time_at_events(
353
350
client .get_setting = AsyncMock (return_value = ArrayOfSettings ([]))
354
351
client .get_status = AsyncMock (return_value = ArrayOfStatus ([]))
355
352
356
- assert config_entry .state == ConfigEntryState .NOT_LOADED
357
353
await integration_setup (client )
358
354
assert config_entry .state == ConfigEntryState .LOADED
359
355
@@ -468,7 +464,6 @@ async def stream_exception():
468
464
side_effect = [stream_exception (), client .stream_all_events ()]
469
465
)
470
466
471
- assert config_entry .state == ConfigEntryState .NOT_LOADED
472
467
await integration_setup (client )
473
468
await hass .async_block_till_done ()
474
469
@@ -531,7 +526,6 @@ async def test_devices_updated_on_refresh(
531
526
)
532
527
533
528
await async_setup_component (hass , HA_DOMAIN , {})
534
- assert config_entry .state == ConfigEntryState .NOT_LOADED
535
529
await integration_setup (client )
536
530
assert config_entry .state == ConfigEntryState .LOADED
537
531
@@ -564,7 +558,6 @@ async def test_paired_disconnected_devices_not_fetching(
564
558
) -> None :
565
559
"""Test that Home Connect API is not fetched after pairing a disconnected device."""
566
560
client .get_home_appliances = AsyncMock (return_value = ArrayOfHomeAppliances ([]))
567
- assert config_entry .state == ConfigEntryState .NOT_LOADED
568
561
assert await integration_setup (client )
569
562
assert config_entry .state == ConfigEntryState .LOADED
570
563
@@ -601,7 +594,6 @@ async def test_coordinator_disabling_updates_for_appliance(
601
594
appliance_ha_id = "SIEMENS-HCS02DWH1-6BE58C26DCC1"
602
595
issue_id = f"home_connect_too_many_connected_paired_events_{ appliance_ha_id } "
603
596
604
- assert config_entry .state == ConfigEntryState .NOT_LOADED
605
597
assert await integration_setup (client )
606
598
assert config_entry .state == ConfigEntryState .LOADED
607
599
@@ -692,7 +684,6 @@ async def test_coordinator_disabling_updates_for_appliance_is_gone_after_entry_r
692
684
appliance_ha_id = "SIEMENS-HCS02DWH1-6BE58C26DCC1"
693
685
issue_id = f"home_connect_too_many_connected_paired_events_{ appliance_ha_id } "
694
686
695
- assert config_entry .state == ConfigEntryState .NOT_LOADED
696
687
assert await integration_setup (client )
697
688
assert config_entry .state == ConfigEntryState .LOADED
698
689
@@ -718,7 +709,6 @@ async def test_coordinator_disabling_updates_for_appliance_is_gone_after_entry_r
718
709
719
710
assert not issue_registry .async_get_issue (DOMAIN , issue_id )
720
711
721
- assert config_entry .state == ConfigEntryState .NOT_LOADED
722
712
assert await integration_setup (client )
723
713
assert config_entry .state == ConfigEntryState .LOADED
724
714
0 commit comments