Allow MQTT discovery (#16842)
This commit is contained in:
1 parent
356040d506
commit
b9043ef7a7
6 files changed
+31
-18
No files matched your search
@@ -41,6 +41,11 @@ async def test_user_connection_works(hass, mock_try_connection,
|
||||
)
|
||||
|
||||
assert result['type'] == 'create_entry'
|
||||
assert result['result'].data == {
|
||||
'broker': '127.0.0.1',
|
||||
'port': 1883,
|
||||
'discovery': False,
|
||||
}
|
||||
# Check we tried the connection
|
||||
assert len(mock_try_connection.mock_calls) == 1
|
||||
# Check config entry got setup
|
||||
|
||||
Reference in new issue
Block a user