From e64f901e92b43de5adc1194577e50d266dcbb737 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:47:56 +0100 Subject: [PATCH] Use dataclass properties in zwave_js (#60913) Co-authored-by: epenet --- tests/components/zwave_js/test_config_flow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/components/zwave_js/test_config_flow.py b/tests/components/zwave_js/test_config_flow.py index bf5dda3ade2..66fc9934ee1 100644 --- a/tests/components/zwave_js/test_config_flow.py +++ b/tests/components/zwave_js/test_config_flow.py @@ -488,7 +488,7 @@ async def test_usb_discovery( "core_zwave_js", { "options": { - "device": USB_DISCOVERY_INFO["device"], + "device": USB_DISCOVERY_INFO.device, "s0_legacy_key": "new123", "s2_access_control_key": "new456", "s2_authenticated_key": "new789", @@ -516,7 +516,7 @@ async def test_usb_discovery( assert result["title"] == TITLE assert result["data"] == { "url": "ws://host1:3001", - "usb_path": USB_DISCOVERY_INFO["device"], + "usb_path": USB_DISCOVERY_INFO.device, "s0_legacy_key": "new123", "s2_access_control_key": "new456", "s2_authenticated_key": "new789", @@ -578,7 +578,7 @@ async def test_usb_discovery_addon_not_running( "core_zwave_js", { "options": { - "device": USB_DISCOVERY_INFO["device"], + "device": USB_DISCOVERY_INFO.device, "s0_legacy_key": "new123", "s2_access_control_key": "new456", "s2_authenticated_key": "new789", @@ -606,7 +606,7 @@ async def test_usb_discovery_addon_not_running( assert result["title"] == TITLE assert result["data"] == { "url": "ws://host1:3001", - "usb_path": USB_DISCOVERY_INFO["device"], + "usb_path": USB_DISCOVERY_INFO.device, "s0_legacy_key": "new123", "s2_access_control_key": "new456", "s2_authenticated_key": "new789",