@@ -704,14 +704,20 @@ async def tinker_switch(
704704
705705 @pytest .mark .asyncio
706706 async def tinker_thermostat_temp (
707- self , smile , loc_id , block_cooling = False , unhappy = False
707+ self , smile , loc_id , block_cooling = False , fail_cooling = False , unhappy = False
708708 ):
709709 """Toggle temperature to test functionality."""
710710 _LOGGER .info ("Asserting modifying settings in location (%s):" , loc_id )
711711 tinker_temp_passed = False
712712 test_temp = {"setpoint" : 22.9 }
713713 if self .cooling_present and not block_cooling :
714- test_temp = {"setpoint_low" : 19.5 , "setpoint_high" : 23.5 }
714+ if smile .smile_name == "Smile Anna" :
715+ if self ._cooling_enabled :
716+ test_temp = {"setpoint_low" : 4.0 , "setpoint_high" : 23.0 }
717+ else :
718+ test_temp = {"setpoint_low" : 19.0 , "setpoint_high" : 30.0 }
719+ if fail_cooling :
720+ test_temp = {"setpoint_low" : 19.0 , "setpoint_high" : 23.0 }
715721 _LOGGER .info ("- Adjusting temperature to %s" , test_temp )
716722 try :
717723 await smile .set_temperature (loc_id , test_temp )
@@ -826,14 +832,15 @@ async def tinker_thermostat(
826832 good_schedules = None ,
827833 single = False ,
828834 block_cooling = False ,
835+ fail_cooling = False ,
829836 unhappy = False ,
830837 ):
831838 """Toggle various climate settings to test functionality."""
832839 if good_schedules is None : # pragma: no cover
833840 good_schedules = ["Weekschema" ]
834841
835842 result_1 = await self .tinker_thermostat_temp (
836- smile , loc_id , block_cooling , unhappy
843+ smile , loc_id , block_cooling , fail_cooling , unhappy
837844 )
838845 result_2 = await self .tinker_thermostat_preset (smile , loc_id , unhappy )
839846 if smile ._schedule_old_states != {}:
@@ -858,11 +865,12 @@ async def tinker_legacy_thermostat(
858865 smile ,
859866 schedule_on = True ,
860867 block_cooling = False ,
868+ fail_cooling = False ,
861869 unhappy = False ,
862870 ):
863871 """Toggle various climate settings to test functionality."""
864872 result_1 = await self .tinker_thermostat_temp (
865- smile , "dummy" , block_cooling , unhappy
873+ smile , "dummy" , block_cooling , fail_cooling , unhappy
866874 )
867875 result_2 = await self .tinker_thermostat_preset (smile , None , unhappy )
868876 result_3 = await self .tinker_legacy_thermostat_schedule (smile , unhappy )
0 commit comments