Tweak MQTT hassio discovery flow (#72699)
parent
342ccb5bf1
commit
84243cf560
|
@ -120,7 +120,6 @@ class FlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
CONF_PORT: data[CONF_PORT],
|
||||
CONF_USERNAME: data.get(CONF_USERNAME),
|
||||
CONF_PASSWORD: data.get(CONF_PASSWORD),
|
||||
CONF_PROTOCOL: data.get(CONF_PROTOCOL),
|
||||
CONF_DISCOVERY: DEFAULT_DISCOVERY,
|
||||
},
|
||||
)
|
||||
|
|
|
@ -235,7 +235,8 @@ async def test_hassio_confirm(hass, mock_try_connection_success, mock_finish_set
|
|||
"port": 1883,
|
||||
"username": "mock-user",
|
||||
"password": "mock-pass",
|
||||
"protocol": "3.1.1",
|
||||
"protocol": "3.1.1", # Set by the addon's discovery, ignored by HA
|
||||
"ssl": False, # Set by the addon's discovery, ignored by HA
|
||||
}
|
||||
),
|
||||
context={"source": config_entries.SOURCE_HASSIO},
|
||||
|
@ -255,7 +256,6 @@ async def test_hassio_confirm(hass, mock_try_connection_success, mock_finish_set
|
|||
"port": 1883,
|
||||
"username": "mock-user",
|
||||
"password": "mock-pass",
|
||||
"protocol": "3.1.1",
|
||||
"discovery": True,
|
||||
}
|
||||
# Check we tried the connection
|
||||
|
|
Loading…
Reference in New Issue