@@ -34,8 +34,8 @@ async def test_connect_anna_v4(self):
3434 assert not self .notifications
3535
3636 assert not self .cooling_present
37- assert not smile ._cooling_active
38- assert not smile ._cooling_enabled
37+ assert not self ._cooling_active
38+ assert not self ._cooling_enabled
3939
4040 result = await self .tinker_thermostat (
4141 smile ,
@@ -195,8 +195,8 @@ async def test_connect_anna_heatpump_heating(self):
195195 assert self .entity_items == 67
196196 assert not self .notifications
197197 assert self .cooling_present
198- assert not smile ._cooling_enabled
199- assert not smile ._cooling_active
198+ assert not self ._cooling_enabled
199+ assert not self ._cooling_active
200200
201201 with pytest .raises (pw_exceptions .PlugwiseError ) as exc :
202202 await self .tinker_thermostat (
@@ -251,8 +251,8 @@ async def test_connect_anna_heatpump_cooling(self):
251251 assert self .cooling_present
252252 assert not self .notifications
253253
254- assert smile ._cooling_enabled
255- assert smile ._cooling_active
254+ assert self ._cooling_enabled
255+ assert self ._cooling_active
256256
257257 with pytest .raises (pw_exceptions .PlugwiseError ) as exc :
258258 await self .tinker_thermostat (
@@ -294,8 +294,8 @@ async def test_connect_anna_heatpump_cooling_fake_firmware(self):
294294 await self .device_test (smile , "2020-04-19 00:00:01" , testdata )
295295 assert self .entity_items == 64
296296 assert self .cooling_present
297- assert smile ._cooling_enabled
298- assert smile ._cooling_active
297+ assert self ._cooling_enabled
298+ assert self ._cooling_active
299299
300300 await smile .close_connection ()
301301 await self .disconnect (server , client )
@@ -349,7 +349,7 @@ async def test_connect_anna_elga_2(self):
349349 assert self .entity_items == 63
350350 assert smile .gateway_id == "fb49af122f6e4b0f91267e1cf7666d6f"
351351 assert self .cooling_present
352- assert not smile ._cooling_enabled
352+ assert not self ._cooling_enabled
353353 assert not self .notifications
354354
355355 await smile .close_connection ()
@@ -370,7 +370,7 @@ async def test_connect_anna_elga_2_schedule_off(self):
370370 == THERMOSTAT_SCHEDULE
371371 )
372372 assert self .cooling_present
373- assert not smile ._cooling_enabled
373+ assert not self ._cooling_enabled
374374 assert self .entity_items == 63
375375
376376 await smile .close_connection ()
@@ -404,8 +404,8 @@ async def test_connect_anna_elga_2_cooling(self):
404404 assert not self .notifications
405405
406406 assert self .cooling_present
407- assert smile ._cooling_enabled
408- assert smile ._cooling_active
407+ assert self ._cooling_enabled
408+ assert self ._cooling_active
409409
410410 # Simulate a change of season: from cooling to heating after an update_interval
411411 testdata_updated = self .load_testdata (
@@ -417,8 +417,8 @@ async def test_connect_anna_elga_2_cooling(self):
417417 smile , "2020-04-05 00:00:01" , testdata_updated , initialize = False
418418 )
419419 assert self .cooling_present
420- assert not smile ._cooling_enabled
421- assert not smile ._cooling_active
420+ assert not self ._cooling_enabled
421+ assert not self ._cooling_active
422422
423423 await smile .close_connection ()
424424 await self .disconnect (server , client )
@@ -442,7 +442,7 @@ async def test_connect_anna_loria_heating_idle(self):
442442 assert smile ._last_active ["15da035090b847e7a21f93e08c015ebc" ] == "Winter"
443443 assert self .entity_items == 66
444444 assert self .cooling_present
445- assert not smile ._cooling_enabled
445+ assert not self ._cooling_enabled
446446
447447 switch_change = await self .tinker_switch (
448448 smile ,
@@ -508,7 +508,7 @@ async def test_connect_anna_loria_cooling_active(self):
508508 assert smile ._last_active ["15da035090b847e7a21f93e08c015ebc" ] == "Winter"
509509 assert self .entity_items == 66
510510 assert self .cooling_present
511- assert smile ._cooling_enabled
511+ assert self ._cooling_enabled
512512
513513 await smile .close_connection ()
514514 await self .disconnect (server , client )
@@ -531,7 +531,7 @@ async def test_connect_anna_loria_driessens(self):
531531 await self .device_test (smile , "2022-05-16 00:00:01" , testdata )
532532 assert self .entity_items == 66
533533 assert self .cooling_present
534- assert not smile ._cooling_enabled
534+ assert not self ._cooling_enabled
535535
536536 await smile .close_connection ()
537537 await self .disconnect (server , client )
0 commit comments