@@ -608,14 +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- data = await smile .async_update ()
611+ await smile .async_update ()
612612 assert smile ._timeout == 30
613613 else :
614- data = await smile .async_update ()
614+ await smile .async_update ()
615615 assert smile ._timeout == 10
616616 else :
617617 _LOGGER .info ("Asserting updated testdata:" )
618- data = await smile .async_update ()
618+ await smile .async_update ()
619+
620+ _LOGGER .info ("Gateway id = %s" , smile .gateway_id )
621+ _LOGGER .info ("Heater id = %s" , smile .heater_id )
622+ _LOGGER .info ("Hostname = %s" , smile .smile_hostname )
623+ _LOGGER .info ("Entities list = %s" , smile .devices )
619624
620625 self .cooling_present = smile .cooling_present
621626 self .notifications = smile .notifications
@@ -624,7 +629,7 @@ def test_and_assert(test_dict, data, header):
624629 self ._cooling_active = False
625630 self ._cooling_enabled = False
626631 if smile .heater_id != "None" :
627- heat_cooler = data .devices [smile .heater_id ]
632+ heat_cooler = smile .devices [smile .heater_id ]
628633 if "binary_sensors" in heat_cooler :
629634 if "cooling_enabled" in heat_cooler ["binary_sensors" ]:
630635 self ._cooling_enabled = heat_cooler ["binary_sensors" ][
@@ -635,27 +640,24 @@ def test_and_assert(test_dict, data, header):
635640 "cooling_state"
636641 ]
637642
638- self ._write_json ("all_data" , {"devices" : data .devices , "gateway" : data . gateway })
643+ self ._write_json ("all_data" , {"devices" : smile .devices })
639644
640645 if "FIXTURES" in os .environ :
641646 _LOGGER .info ("Skipping tests: Requested fixtures only" ) # pragma: no cover
642647 return # pragma: no cover
643648
644- self .entity_list = list (data .devices .keys ())
649+ self .entity_list = list (smile .devices .keys ())
645650 location_list = smile ._loc_data
646651
647- _LOGGER .info ("Gateway id = %s" , smile .gateway_id )
648- _LOGGER .info ("Hostname = %s" , smile .smile_hostname )
649- _LOGGER .info ("Gateway data = %s" , data .gateway )
650- _LOGGER .info ("Entities list = %s" , data .devices )
651- self .show_setup (location_list , data .devices )
652+
653+ self .show_setup (location_list , smile .devices )
652654
653655 if skip_testing :
654656 return
655657
656658 # Perform tests and asserts in two steps: devices and zones
657659 for header , data_dict in testdata .items ():
658- test_and_assert (data_dict , data .devices , header )
660+ test_and_assert (data_dict , smile .devices , header )
659661
660662 # pragma warning restore S3776
661663
0 commit comments