File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -767,6 +767,22 @@ async def test_TC_TSTAT_2_2(self):
767
767
val = await self .read_single_attribute_check_success (endpoint = endpoint , cluster = cluster , attribute = cluster .Attributes .OccupiedHeatingSetpoint )
768
768
asserts .assert_equal (val , OccupiedHeatingSetpointValue + 30 * 10 )
769
769
770
+ if self .pics_guard (hasCoolingFeature ):
771
+ # Restores OccupiedCoolingSetpoint to original value
772
+ await self .write_single_attribute (attribute_value = cluster .Attributes .OccupiedCoolingSetpoint (OccupiedCoolingSetpointValue ), endpoint_id = endpoint )
773
+
774
+ if self .pics_guard (hasHeatingFeature ):
775
+ # Restores OccupiedHeatingSetpoint to original value
776
+ await self .write_single_attribute (attribute_value = cluster .Attributes .OccupiedHeatingSetpoint (OccupiedHeatingSetpointValue ), endpoint_id = endpoint )
777
+
778
+ if self .pics_guard (hasOccupancyFeature and hasCoolingFeature ):
779
+ # Restores UnoccupiedCoolingSetpoint to original value
780
+ await self .write_single_attribute (attribute_value = cluster .Attributes .UnoccupiedCoolingSetpoint (UnoccupiedCoolingSetpointValue ), endpoint_id = endpoint )
781
+
782
+ if self .pics_guard (hasOccupancyFeature and hasHeatingFeature ):
783
+ # Restores UnoccupiedHeatingSetpoint to original value
784
+ await self .write_single_attribute (attribute_value = cluster .Attributes .UnoccupiedHeatingSetpoint (UnoccupiedHeatingSetpointValue ), endpoint_id = endpoint )
785
+
770
786
771
787
if __name__ == "__main__" :
772
788
default_matter_test_main ()
You can’t perform that action at this time.
0 commit comments