We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4a87b2 commit 291f1b7Copy full SHA for 291f1b7
tests/components/plugwise/test_config_flow.py
@@ -140,13 +140,15 @@ async def test_form(
140
141
assert result2.get("type") == FlowResultType.CREATE_ENTRY
142
assert result2.get("title") == "Test Smile Name"
143
- assert result2.get("data") == {
+ data = result2.get("data") == {
144
CONF_HOST: TEST_HOST,
145
CONF_PASSWORD: TEST_PASSWORD,
146
CONF_PORT: DEFAULT_PORT,
147
CONF_TIMEOUT: TEST_TIMEOUT_LEGACY,
148
CONF_USERNAME: TEST_USERNAME,
149
}
150
+ assert data
151
+ assert data.data[CONF_TIMEOUT] == TEST_TIMEOUT_LEGACY
152
153
assert len(mock_setup_entry.mock_calls) == 1
154
assert len(mock_smile_config_flow.connect.mock_calls) == 1
0 commit comments