Skip to content

Commit 0b61230

Browse files
committed
Restyled Python test
1 parent 242d16e commit 0b61230

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/python_testing/TC_TSTAT_2_3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async def test_TC_TSTAT_2_2(self):
8989
occupiedCoolingSetpoint = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=cluster.Attributes.OccupiedCoolingSetpoint)
9090
occupiedHeatingSetpoint = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=cluster.Attributes.OccupiedHeatingSetpoint)
9191
deadband = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=cluster.Attributes.MinSetpointDeadBand)
92-
deadband *= 10 # Unlike all the setpoints it affects, deadband is in 0.1C increments, because reasons
92+
deadband *= 10 # Unlike all the setpoints it affects, deadband is in 0.1C increments, because reasons
9393
unoccupiedCoolingSetpoint = None
9494
unoccupiedHeatingSetpoint = None
9595

@@ -125,7 +125,6 @@ async def test_TC_TSTAT_2_2(self):
125125
unoccupiedCoolingSetpoint = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=cluster.Attributes.UnoccupiedCoolingSetpoint)
126126
asserts.assert_equal(unoccupiedCoolingSetpoint, targetCoolingSetpoint, "UnoccupiedCoolingSetpoint was not adjusted")
127127

128-
129128
self.step("7")
130129
if self.pics_guard(self.check_pics("TSTAT.S.F02")) and unoccupiedHeatingSetpoint > minHeat:
131130
targetCoolingSetpoint = (unoccupiedHeatingSetpoint + deadband) - 1
@@ -134,5 +133,6 @@ async def test_TC_TSTAT_2_2(self):
134133
unoccupiedHeatingSetpoint = await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=cluster.Attributes.UnoccupiedHeatingSetpoint)
135134
asserts.assert_equal(unoccupiedHeatingSetpoint, targetHeatingSetpoint, "UnoccupiedHeatingSetpoint was not adjusted")
136135

136+
137137
if __name__ == "__main__":
138-
default_matter_test_main()
138+
default_matter_test_main()

0 commit comments

Comments
 (0)