Skip to content

Commit 37fdca4

Browse files
committed
Implement suggestion
1 parent 0e86208 commit 37fdca4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/components/plugwise/test_config_flow.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,13 @@ async def test_zeroconf_form(
185185

186186
assert result2.get("type") == FlowResultType.CREATE_ENTRY
187187
assert result2.get("title") == "Test Smile Name"
188+
timeout, username = result
188189
assert result2.get("data") == {
189190
CONF_HOST: TEST_HOST,
190191
CONF_PASSWORD: TEST_PASSWORD,
191192
CONF_PORT: DEFAULT_PORT,
192-
CONF_TIMEOUT: result[1],
193-
CONF_USERNAME: result[0],
193+
CONF_TIMEOUT: timeout,
194+
CONF_USERNAME: username,
194195
}
195196

196197
assert len(mock_setup_entry.mock_calls) == 1

0 commit comments

Comments
 (0)