Skip to content

Commit

Permalink
Add a while loop to add more presets until max is reached
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple committed Aug 28, 2024
1 parent 6343c49 commit 66c747a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_testing/TC_TSTAT_4_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ async def test_TC_TSTAT_4_2(self):
testPresets.append(preset)
presetsAddedForScenario = presetsAddedForScenario + 1

if presetsAddedForScenario < presetType.numberOfPresets:
while presetsAddedForScenario < presetType.numberOfPresets:
testPresets.append(cluster.Structs.PresetStruct(presetHandle=NullValue, presetScenario=scenario,
name="Preset", coolingSetpoint=2500, heatingSetpoint=1700, builtIn=False))
presetsAddedForScenario = presetsAddedForScenario + 1
Expand Down

0 comments on commit 66c747a

Please sign in to comment.