@@ -380,6 +380,8 @@ async def device_test(self, smile=pw_smile.Smile, testdata=None):
380380
381381 _LOGGER .info ("Gateway id = %s" , extra ["gateway_id" ])
382382 _LOGGER .info ("Hostname = %s" , smile .smile_hostname )
383+ _LOGGER .info ("Extra = %s" , extra )
384+ _LOGGER .info ("Device list = %s" , device_list )
383385 self .show_setup (location_list , device_list )
384386
385387 tests = 0
@@ -548,7 +550,6 @@ async def test_connect_legacy_anna(self):
548550 "available_schedules" : ["Thermostat schedule" ],
549551 "selected_schedule" : "Thermostat schedule" ,
550552 "last_used" : "Thermostat schedule" ,
551- "location" : 0 ,
552553 "presets" : {
553554 "asleep" : [19.0 , 0 ],
554555 "away" : [19.0 , 0 ],
@@ -566,13 +567,15 @@ async def test_connect_legacy_anna(self):
566567 },
567568 # Central
568569 "04e4cbfe7f4340f090f85ec3b9e6a950" : {
570+ "location" : pw_constants .FAKE_LOC ,
569571 "heating_state" : True ,
570572 "sensors" : [
571573 {"id" : "water_temperature" , "state" : 23.6 },
572574 {"id" : "intended_boiler_temperature" , "state" : 17.0 },
573575 {"id" : "modulation_level" , "state" : 0.0 },
574576 {"id" : "return_temperature" , "state" : 21.7 },
575577 {"id" : "water_pressure" , "state" : 1.2 },
578+ {"id" : "device_state" , "state" : "heating" },
576579 ],
577580 },
578581 }
@@ -784,6 +787,7 @@ async def test_connect_anna_v4(self):
784787 "sensors" : [
785788 {"id" : "water_pressure" , "state" : 2.1 },
786789 {"id" : "water_temperature" , "state" : 52.0 },
790+ {"id" : "device_state" , "state" : "heating" },
787791 ],
788792 },
789793 "0466eae8520144c78afb29628384edeb" : {
@@ -1001,12 +1005,8 @@ async def test_connect_adam_plus_anna(self):
10011005 # Central
10021006 "2743216f626f43948deec1f7ab3b3d70" : {
10031007 "heating_state" : False ,
1004- "binary_sensors" : [
1005- {
1006- "id" : "flame_state" ,
1007- "state" : False ,
1008- }
1009- ],
1008+ "binary_sensors" : [{"id" : "flame_state" , "state" : False }],
1009+ "sensors" : [{"id" : "device_state" , "state" : "idle" }],
10101010 },
10111011 "b128b4bbbd1f47e9bf4d756e8fb5ee94" : {
10121012 "sensors" : [{"id" : "outdoor_temperature" , "state" : 11.9 }]
@@ -1070,12 +1070,8 @@ async def test_connect_adam_plus_anna_new(self):
10701070 testdata = {
10711071 # Central
10721072 "2743216f626f43948deec1f7ab3b3d70" : {
1073- "binary_sensors" : [
1074- {
1075- "id" : "dhw_state" ,
1076- "state" : True ,
1077- }
1078- ]
1073+ "binary_sensors" : [{"id" : "dhw_state" , "state" : True }],
1074+ "sensors" : [{"id" : "device_state" , "state" : "dhw-heating" }],
10791075 },
10801076 # Test Switch
10811077 "b83f9f9758064c0fab4af6578cba4c6d" : {
@@ -1126,12 +1122,8 @@ async def test_connect_adam_plus_anna_new_copy_dhw_and_heating(self):
11261122 # Central
11271123 "2743216f626f43948deec1f7ab3b3d70" : {
11281124 "heating_state" : True ,
1129- "binary_sensors" : [
1130- {
1131- "id" : "dhw_state" ,
1132- "state" : True ,
1133- }
1134- ],
1125+ "binary_sensors" : [{"id" : "dhw_state" , "state" : True }],
1126+ "sensors" : [{"id" : "device_state" , "state" : "dhw and heating" }],
11351127 }
11361128 }
11371129
@@ -1150,6 +1142,7 @@ async def test_connect_adam_plus_anna_new_copy_cooling(self):
11501142 # Central
11511143 "2743216f626f43948deec1f7ab3b3d70" : {
11521144 "cooling_state" : True ,
1145+ "sensors" : [{"id" : "device_state" , "state" : "cooling" }],
11531146 },
11541147 }
11551148
@@ -1168,12 +1161,8 @@ async def test_connect_adam_plus_anna_new_copy_dhw_and_cooling(self):
11681161 # Central
11691162 "2743216f626f43948deec1f7ab3b3d70" : {
11701163 "cooling_state" : True ,
1171- "binary_sensors" : [
1172- {
1173- "id" : "dhw_state" ,
1174- "state" : True ,
1175- }
1176- ],
1164+ "binary_sensors" : [{"id" : "dhw_state" , "state" : True }],
1165+ "sensors" : [{"id" : "device_state" , "state" : "dhw and cooling" }],
11771166 }
11781167 }
11791168
@@ -1232,6 +1221,7 @@ async def test_connect_adam_zone_per_device(self):
12321221 ],
12331222 "sensors" : [
12341223 {"id" : "outdoor_temperature" , "state" : 7.69 },
1224+ {"id" : "device_state" , "state" : "idle" },
12351225 ],
12361226 },
12371227 # Modem
@@ -1346,6 +1336,7 @@ async def test_connect_adam_multiple_devices_per_zone(self):
13461336 "heating_state" : True ,
13471337 "sensors" : [
13481338 {"id" : "outdoor_temperature" , "state" : 7.81 },
1339+ {"id" : "device_state" , "state" : "heating" },
13491340 ],
13501341 },
13511342 # Modem
0 commit comments