Skip to content

Commit a3cb7c7

Browse files
committed
Fix lint
1 parent 8b060d7 commit a3cb7c7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/python_testing/TC_MWOCTRL_2_1.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# limitations under the License.
1616
#
1717

18-
import logging
19-
2018
import chip.clusters as Clusters
2119
from chip.interaction_model import InteractionModelError, Status
2220
from matter_testing_support import MatterBaseTest, TestStep, async_test_body, default_matter_test_main
@@ -43,7 +41,7 @@ async def set_cook_time_expect_success(self, endpoint, value):
4341
async def set_bad_cook_time_value_expect_failure(self, endpoint, value):
4442
commands = Clusters.Objects.MicrowaveOvenControl.Commands
4543
try:
46-
await self.send_single_cmd(cmd=Clusters.Objects.MicrowaveOvenControl.Commands.SetCookingParameters(cookTime=value), endpoint=endpoint)
44+
await self.send_single_cmd(cmd=commands.SetCookingParameters(cookTime=value), endpoint=endpoint)
4745
asserts.assert_fail("Expected an exception but received none.")
4846
except InteractionModelError as e:
4947
asserts.assert_equal(e.status, Status.ConstraintError, "Expected a CONSTRAINT_ERROR but got a different response.")
@@ -93,8 +91,6 @@ async def test_TC_MWOCTRL_2_1(self):
9391

9492
self.step(1)
9593
attributes = Clusters.MicrowaveOvenControl.Attributes
96-
features = Clusters.MicrowaveOvenControl.Bitmaps.Feature
97-
commands = Clusters.Objects.MicrowaveOvenControl.Commands
9894

9995
self.step(2)
10096
maxCookTime = await self.read_mwoctrl_attribute_expect_success(endpoint=endpoint, attribute=attributes.MaxCookTime)

0 commit comments

Comments
 (0)