@@ -524,7 +524,7 @@ async def tinker_thermostat_preset(self, smile, loc_id, unhappy=False):
524524
525525 @pytest .mark .asyncio
526526 async def tinker_thermostat_schedule (
527- self , smile , loc_id , good_schedules = None , unhappy = False
527+ self , smile , loc_id , state , good_schedules = None , unhappy = False
528528 ):
529529 if good_schedules != []:
530530 good_schedules .append ("!VeryBogusScheduleNameThatNobodyEverUsesOrShouldUse" )
@@ -538,7 +538,7 @@ async def tinker_thermostat_schedule(
538538 _LOGGER .info ("- Adjusting schedule to %s" , f"{ new_schedule } { warning } " )
539539 try :
540540 schedule_change = await smile .set_schedule_state (
541- loc_id , new_schedule , "on"
541+ loc_id , new_schedule , state
542542 )
543543 assert schedule_change == assert_state
544544 _LOGGER .info (" + failed as intended" )
@@ -564,7 +564,9 @@ async def tinker_thermostat(
564564
565565 await self .tinker_thermostat_temp (smile , loc_id , unhappy )
566566 await self .tinker_thermostat_preset (smile , loc_id , unhappy )
567- await self .tinker_thermostat_schedule (smile , loc_id , good_schedules , unhappy )
567+ await self .tinker_thermostat_schedule (
568+ smile , loc_id , "on" , good_schedules , unhappy
569+ )
568570
569571 @staticmethod
570572 async def tinker_regulation_mode (smile ):
0 commit comments