mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Tweak MQTT hassio discovery flow (#72699)
This commit is contained in:
parent
342ccb5bf1
commit
84243cf560
@ -120,7 +120,6 @@ class FlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
CONF_PORT: data[CONF_PORT],
|
CONF_PORT: data[CONF_PORT],
|
||||||
CONF_USERNAME: data.get(CONF_USERNAME),
|
CONF_USERNAME: data.get(CONF_USERNAME),
|
||||||
CONF_PASSWORD: data.get(CONF_PASSWORD),
|
CONF_PASSWORD: data.get(CONF_PASSWORD),
|
||||||
CONF_PROTOCOL: data.get(CONF_PROTOCOL),
|
|
||||||
CONF_DISCOVERY: DEFAULT_DISCOVERY,
|
CONF_DISCOVERY: DEFAULT_DISCOVERY,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -235,7 +235,8 @@ async def test_hassio_confirm(hass, mock_try_connection_success, mock_finish_set
|
|||||||
"port": 1883,
|
"port": 1883,
|
||||||
"username": "mock-user",
|
"username": "mock-user",
|
||||||
"password": "mock-pass",
|
"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},
|
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,
|
"port": 1883,
|
||||||
"username": "mock-user",
|
"username": "mock-user",
|
||||||
"password": "mock-pass",
|
"password": "mock-pass",
|
||||||
"protocol": "3.1.1",
|
|
||||||
"discovery": True,
|
"discovery": True,
|
||||||
}
|
}
|
||||||
# Check we tried the connection
|
# Check we tried the connection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user