From 4162238915de84f9d8241ae930c5aff1475565c5 Mon Sep 17 00:00:00 2001 From: James Harrow Date: Mon, 29 Jul 2024 08:23:00 +0100 Subject: [PATCH] Fixed issue raised on TC_EWATERHTR_2_1.py about checking that BoostState is in valid range. --- src/python_testing/TC_EWATERHTR_2_1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/python_testing/TC_EWATERHTR_2_1.py b/src/python_testing/TC_EWATERHTR_2_1.py index 9a34fd5d9fc35b..c278da6c094010 100644 --- a/src/python_testing/TC_EWATERHTR_2_1.py +++ b/src/python_testing/TC_EWATERHTR_2_1.py @@ -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__":