@@ -486,11 +486,13 @@ async def tinker_switch(
486486 return tinker_switch_passed
487487
488488 @pytest .mark .asyncio
489- async def tinker_thermostat_temp (self , smile , loc_id , special = True , unhappy = False ):
489+ async def tinker_thermostat_temp (
490+ self , smile , loc_id , block_cooling = False , unhappy = False
491+ ):
490492 """Toggle temperature to test functionality."""
491493 _LOGGER .info ("Asserting modifying settings in location (%s):" , loc_id )
492494 test_temp = {"setpoint" : 22.9 }
493- if smile ._cooling_present and special :
495+ if smile ._cooling_present and not block_cooling :
494496 test_temp = {"setpoint_low" : 19.5 , "setpoint_high" : 23.5 }
495497 _LOGGER .info ("- Adjusting temperature to %s" , test_temp )
496498 try :
@@ -584,14 +586,16 @@ async def tinker_thermostat(
584586 schedule_on = True ,
585587 good_schedules = None ,
586588 single = False ,
587- special = True ,
589+ block_cooling = False ,
588590 unhappy = False ,
589591 ):
590592 """Toggle various climate settings to test functionality."""
591593 if good_schedules is None : # pragma: no cover
592594 good_schedules = ["Weekschema" ]
593595
594- result_1 = await self .tinker_thermostat_temp (smile , loc_id , special , unhappy )
596+ result_1 = await self .tinker_thermostat_temp (
597+ smile , loc_id , block_cooling , unhappy
598+ )
595599 result_2 = await self .tinker_thermostat_preset (smile , loc_id , unhappy )
596600 if smile ._schedule_old_states != {}:
597601 for item in smile ._schedule_old_states [loc_id ]:
@@ -4392,7 +4396,7 @@ async def test_connect_anna_loria_heating_idle(self):
43924396 await self .tinker_thermostat_temp (
43934397 smile ,
43944398 "15da035090b847e7a21f93e08c015ebc" ,
4395- special = False ,
4399+ block_cooling = True ,
43964400 )
43974401 _LOGGER .debug ("ERROR raised: %s" , exc .value )
43984402
0 commit comments