@@ -608,19 +608,19 @@ def test_and_assert(test_dict, data, header):
608608 if smile .smile_legacy :
609609 await smile .full_xml_update ()
610610 smile .get_all_gateway_entities ()
611- await smile .async_update ()
611+ data = await smile .async_update ()
612612 assert smile ._timeout == 30
613613 else :
614- await smile .async_update ()
614+ data = await smile .async_update ()
615615 assert smile ._timeout == 10
616616 else :
617617 _LOGGER .info ("Asserting updated testdata:" )
618- await smile .async_update ()
618+ data = await smile .async_update ()
619619
620620 _LOGGER .info ("Gateway id = %s" , smile .gateway_id )
621621 _LOGGER .info ("Heater id = %s" , smile .heater_id )
622622 _LOGGER .info ("Hostname = %s" , smile .smile_hostname )
623- _LOGGER .info ("Entities list = %s" , smile . devices )
623+ _LOGGER .info ("Entities list = %s" , data )
624624
625625 self .cooling_present = smile .cooling_present
626626 self .notifications = smile .notifications
@@ -629,7 +629,7 @@ def test_and_assert(test_dict, data, header):
629629 self ._cooling_active = False
630630 self ._cooling_enabled = False
631631 if smile .heater_id != "None" :
632- heat_cooler = smile . devices [smile .heater_id ]
632+ heat_cooler = data [smile .heater_id ]
633633 if "binary_sensors" in heat_cooler :
634634 if "cooling_enabled" in heat_cooler ["binary_sensors" ]:
635635 self ._cooling_enabled = heat_cooler ["binary_sensors" ][
@@ -640,23 +640,23 @@ def test_and_assert(test_dict, data, header):
640640 "cooling_state"
641641 ]
642642
643- self ._write_json ("all_data" , {"devices" : smile . devices })
643+ self ._write_json ("all_data" , {"devices" : data })
644644
645645 if "FIXTURES" in os .environ :
646646 _LOGGER .info ("Skipping tests: Requested fixtures only" ) # pragma: no cover
647647 return # pragma: no cover
648648
649- self .entity_list = list (smile . devices .keys ())
649+ self .entity_list = list (data .keys ())
650650 location_list = smile ._loc_data
651651
652- self .show_setup (location_list , smile . devices )
652+ self .show_setup (location_list , data )
653653
654654 if skip_testing :
655655 return
656656
657657 # Perform tests and asserts in two steps: devices and zones
658658 for header , data_dict in testdata .items ():
659- test_and_assert (data_dict , smile . devices , header )
659+ test_and_assert (data_dict , data , header )
660660
661661 # pragma warning restore S3776
662662
0 commit comments