Skip to content

Commit

Permalink
Fixed issue raised on TC_EWATERHTR_2_1.py about checking that BoostSt…
Browse files Browse the repository at this point in the history
…ate is in valid range.
  • Loading branch information
jamesharrow committed Jul 29, 2024
1 parent 5c3af52 commit 4162238
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python_testing/TC_EWATERHTR_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ async def test_TC_EWATERHTR_2_1(self):
logging.info("Skipping step 6 as PIXIT.EWATERHTR.TP not supported")

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


if __name__ == "__main__":
Expand Down

0 comments on commit 4162238

Please sign in to comment.