From a29dc86f62381bd9018c8728d9d89499c82fc35e Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:31:42 +0100 Subject: [PATCH] Fix ruff error (#114364) --- tests/components/zha/test_discover.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/zha/test_discover.py b/tests/components/zha/test_discover.py index f9242eb1d96..c32b9252f4d 100644 --- a/tests/components/zha/test_discover.py +++ b/tests/components/zha/test_discover.py @@ -1001,7 +1001,7 @@ async def test_quirks_v2_metadata_errors( # if the device was created we remove it # so we don't pollute the rest of the tests zigpy.quirks._DEVICE_REGISTRY.remove(zigpy_device) - except ValueError as e: + except ValueError: # if the device was not created we remove it # so we don't pollute the rest of the tests zigpy.quirks._DEVICE_REGISTRY._registry_v2.pop( @@ -1010,7 +1010,7 @@ async def test_quirks_v2_metadata_errors( "TRADFRI remote control4", ) ) - raise e + raise class BadDeviceClass(enum.Enum): -- GitLab