Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4162238

Browse files
committedJul 29, 2024·
Fixed issue raised on TC_EWATERHTR_2_1.py about checking that BoostState is in valid range.
1 parent 5c3af52 commit 4162238

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/python_testing/TC_EWATERHTR_2_1.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ async def test_TC_EWATERHTR_2_1(self):
112112
logging.info("Skipping step 6 as PIXIT.EWATERHTR.TP not supported")
113113

114114
self.step("7")
115-
await self.check_whm_attribute("BoostState", Clusters.WaterHeaterManagement.Enums.BoostStateEnum.kInactive)
115+
boost_state = await self.read_whm_attribute_expect_success(attribute="BoostState")
116+
asserts.assert_less_equal(boost_state, Clusters.WaterHeaterManagement.Enums.BoostStateEnum.kInactive,
117+
f"Unexpected BoostState value - expected {boost_state} should be BoostStateEnum (enum8) value in range 0x00 to 0x01")
116118

117119

118120
if __name__ == "__main__":

0 commit comments

Comments
 (0)
Please sign in to comment.