Cleanup mqtt CONFIG_SCHEMA_ENTRY (#90791)
This commit is contained in:
parent
ca101cc7d1
commit
aa68d1d617
7 changed files with 36 additions and 149 deletions
|
@ -19,20 +19,6 @@ from tests.typing import ClientSessionGenerator, MqttMockHAClientGenerator
|
|||
default_config = {
|
||||
"birth_message": {},
|
||||
"broker": "mock-broker",
|
||||
"discovery": True,
|
||||
"discovery_prefix": "homeassistant",
|
||||
"keepalive": 60,
|
||||
"port": 1883,
|
||||
"protocol": "3.1.1",
|
||||
"transport": "tcp",
|
||||
"will_message": {
|
||||
"payload": "offline",
|
||||
"qos": 0,
|
||||
"retain": False,
|
||||
"topic": "homeassistant/status",
|
||||
},
|
||||
"ws_headers": {},
|
||||
"ws_path": "/",
|
||||
}
|
||||
|
||||
|
||||
|
@ -57,6 +43,7 @@ async def test_entry_diagnostics(
|
|||
config_entry = hass.config_entries.async_entries(mqtt.DOMAIN)[0]
|
||||
mqtt_mock.connected = True
|
||||
|
||||
await get_diagnostics_for_config_entry(hass, hass_client, config_entry)
|
||||
assert await get_diagnostics_for_config_entry(hass, hass_client, config_entry) == {
|
||||
"connected": True,
|
||||
"devices": [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue