Skip to content

Commit

Permalink
Restyled by autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and nivi-apple committed Aug 21, 2024
1 parent 266415d commit dd3ef56
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/python_testing/TC_TSTAT_4_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ async def test_TC_TSTAT_4_2(self):
if self.pics_guard(self.check_pics("TSTAT.S.F08") and self.check_pics("TSTAT.S.A0050") and self.check_pics("TSTAT.S.Cfe.Rsp")):
test_presets = new_presets_with_handle.copy()
test_presets.append(cluster.Structs.PresetStruct(presetHandle=NullValue, presetScenario=9,
name="Wake", coolingSetpoint=2500, heatingSetpoint=1700, builtIn=False))
name="Wake", coolingSetpoint=2500, heatingSetpoint=1700, builtIn=False))

# Send the AtomicRequest begin command
await self.send_atomic_request_begin_command()
Expand All @@ -468,13 +468,13 @@ async def test_TC_TSTAT_4_2(self):

test_presets = copy.deepcopy(new_presets_with_handle)
test_presets.append(cluster.Structs.PresetStruct(presetHandle=NullValue, presetScenario=cluster.Enums.PresetScenarioEnum.kWake,
name="Wake", coolingSetpoint=2500, heatingSetpoint=1700, builtIn=False))
name="Wake", coolingSetpoint=2500, heatingSetpoint=1700, builtIn=False))
test_presets.append(cluster.Structs.PresetStruct(presetHandle=NullValue, presetScenario=cluster.Enums.PresetScenarioEnum.kVacation,
name="Vacation", coolingSetpoint=2400, heatingSetpoint=1800, builtIn=False))
name="Vacation", coolingSetpoint=2400, heatingSetpoint=1800, builtIn=False))
test_presets.append(cluster.Structs.PresetStruct(presetHandle=NullValue, presetScenario=cluster.Enums.PresetScenarioEnum.kGoingToSleep,
name="GoingToSleep", coolingSetpoint=2300, heatingSetpoint=1900, builtIn=False))
name="GoingToSleep", coolingSetpoint=2300, heatingSetpoint=1900, builtIn=False))
test_presets.append(cluster.Structs.PresetStruct(presetHandle=NullValue, presetScenario=cluster.Enums.PresetScenarioEnum.kUserDefined,
name="UserDefined", coolingSetpoint=2300, heatingSetpoint=1900, builtIn=False))
name="UserDefined", coolingSetpoint=2300, heatingSetpoint=1900, builtIn=False))

# Send the AtomicRequest begin command
await self.send_atomic_request_begin_command()
Expand All @@ -484,5 +484,6 @@ async def test_TC_TSTAT_4_2(self):
# Send the AtomicRequest commit command and expect ResourceExhausted for presets.
await self.send_atomic_request_commit_command(expected_overall_status=Status.Failure, expected_preset_status=Status.ResourceExhausted)


if __name__ == "__main__":
default_matter_test_main()

0 comments on commit dd3ef56

Please sign in to comment.