@@ -29,7 +29,6 @@ async def test_connect_anna_v4(self):
2929
3030 await self .device_test (api , "2020-04-05 00:00:01" , testdata )
3131 assert api .gateway_id == "0466eae8520144c78afb29628384edeb"
32- assert api ._last_active ["eb5309212bf5407bb143e5bfa3b18aee" ] == "Standaard"
3332 assert self .entity_items == 60
3433 assert not self .notifications
3534
@@ -102,7 +101,6 @@ async def test_connect_anna_v4_dhw(self):
102101 )
103102
104103 await self .device_test (api , "2020-04-05 00:00:01" , testdata )
105- assert api ._last_active ["eb5309212bf5407bb143e5bfa3b18aee" ] == "Standaard"
106104 assert self .entity_items == 60
107105 assert not self .notifications
108106
@@ -160,7 +158,6 @@ async def test_connect_anna_without_boiler_fw441(self):
160158 )
161159
162160 await self .device_test (api , "2022-05-16 00:00:01" , testdata )
163- assert api ._last_active ["c34c6864216446528e95d88985e714cc" ] == "Normaal"
164161 assert self .entity_items == 41
165162 assert not self .notifications
166163
@@ -189,7 +186,6 @@ async def test_connect_anna_heatpump_heating(self):
189186
190187 await self .device_test (api , "2020-04-12 00:00:01" , testdata )
191188 assert api .gateway_id == "015ae9ea3f964e668e490fa39da3870b"
192- assert api ._last_active ["c784ee9fdab44e1395b8dee7d7a497d5" ] == "standaard"
193189 assert self .entity_items == 69
194190 assert not self .notifications
195191 assert self .cooling_present
@@ -245,7 +241,6 @@ async def test_connect_anna_heatpump_cooling(self):
245241 )
246242
247243 await self .device_test (api , "2020-04-19 00:00:01" , testdata )
248- assert api ._last_active ["c784ee9fdab44e1395b8dee7d7a497d5" ] == "standaard"
249244 assert self .entity_items == 66
250245 assert self .cooling_present
251246 assert not self .notifications
@@ -318,7 +313,6 @@ async def test_connect_anna_elga_no_cooling(self):
318313
319314 await self .device_test (api , "2020-04-12 00:00:01" , testdata )
320315 assert api .gateway_id == "015ae9ea3f964e668e490fa39da3870b"
321- assert api ._last_active ["c784ee9fdab44e1395b8dee7d7a497d5" ] == "standaard"
322316 assert self .entity_items == 65
323317 assert not self .notifications
324318 assert not self .cooling_present
@@ -342,9 +336,6 @@ async def test_connect_anna_elga_2(self):
342336 )
343337
344338 await self .device_test (api , "2022-03-13 00:00:01" , testdata )
345- assert (
346- api ._last_active ["d3ce834534114348be628b61b26d9220" ] == THERMOSTAT_SCHEDULE
347- )
348339 assert self .entity_items == 61
349340 assert api .gateway_id == "fb49af122f6e4b0f91267e1cf7666d6f"
350341 assert self .cooling_present
@@ -364,13 +355,13 @@ async def test_connect_anna_elga_2_schedule_off(self):
364355 assert api .smile .hostname == "smile000000"
365356
366357 await self .device_test (api , "2022-03-13 00:00:01" , testdata )
367- assert (
368- api ._last_active ["d3ce834534114348be628b61b26d9220" ] == THERMOSTAT_SCHEDULE
369- )
370- assert self .cooling_present
371358 assert not self ._cooling_enabled
372359 assert self .entity_items == 65
373360
361+ result = await self .tinker_thermostat (
362+ api , "d3ce834534114348be628b61b26d9220" , good_schedules = ["Thermostat schedule" , "off" ]
363+ )
364+ assert result
374365 await api .close_connection ()
375366 await self .disconnect (server , client )
376367
@@ -394,9 +385,6 @@ async def test_connect_anna_elga_2_cooling(self):
394385 )
395386
396387 await self .device_test (api , "2022-03-10 00:00:01" , testdata )
397- assert (
398- api ._last_active ["d3ce834534114348be628b61b26d9220" ] == THERMOSTAT_SCHEDULE
399- )
400388 assert self .entity_items == 65
401389 assert not self .notifications
402390
@@ -450,7 +438,6 @@ async def test_connect_anna_loria_heating_idle(self):
450438 )
451439
452440 await self .device_test (api , "2022-05-16 00:00:01" , testdata )
453- assert api ._last_active ["15da035090b847e7a21f93e08c015ebc" ] == "Winter"
454441 assert self .entity_items == 68
455442 assert self .cooling_present
456443 assert not self ._cooling_enabled
@@ -516,7 +503,6 @@ async def test_connect_anna_loria_cooling_active(self):
516503 )
517504
518505 await self .device_test (api , "2022-05-16 00:00:01" , testdata )
519- assert api ._last_active ["15da035090b847e7a21f93e08c015ebc" ] == "Winter"
520506 assert self .entity_items == 68
521507 assert self .cooling_present
522508 assert self ._cooling_enabled
0 commit comments