Skip to content

Commit f505ead

Browse files
committed
try to fix tests
1 parent fc0620c commit f505ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/components/plugwise_usb/test_config_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async def test_user_flow_select(hass):
6464
result["flow_id"], user_input={CONF_USB_PATH: port_select}
6565
)
6666
assert result.get("type") is FlowResultType.FORM
67-
assert result.get("data") == {CONF_USB_PATH: TEST_USBPORT}
67+
assert result.get("user_input") == {CONF_USB_PATH: TEST_USBPORT}
6868

6969
# Retry to ensure configuring the same port is not allowed
7070
result = await hass.config_entries.flow.async_init(
@@ -116,7 +116,7 @@ async def test_user_flow_manual(hass):
116116
user_input={CONF_USB_PATH: TEST_USBPORT2},
117117
)
118118
assert result.get("type") is FlowResultType.CREATE_ENTRY
119-
assert result.get("data") == {CONF_USB_PATH: TEST_USBPORT2}
119+
assert result.get("user_input") == {CONF_USB_PATH: TEST_USBPORT2}
120120

121121

122122
async def test_invalid_connection(hass):

0 commit comments

Comments
 (0)