Allow extra keys in MQTT discovery messages (#58390)
* Allow extra keys in MQTT discovery messages * Remove extra keys
This commit is contained in:
parent
a8a8b532d0
commit
640a7fee9d
44 changed files with 628 additions and 480 deletions
|
@ -651,10 +651,10 @@ async def test_discovery_removal_vacuum(hass, mqtt_mock, caplog):
|
|||
|
||||
async def test_discovery_update_vacuum(hass, mqtt_mock, caplog):
|
||||
"""Test update of discovered vacuum."""
|
||||
data1 = '{ "name": "Beer",' ' "command_topic": "test_topic" }'
|
||||
data2 = '{ "name": "Milk",' ' "command_topic": "test_topic" }'
|
||||
config1 = {"name": "Beer", " " "command_topic": "test_topic"}
|
||||
config2 = {"name": "Milk", " " "command_topic": "test_topic"}
|
||||
await help_test_discovery_update(
|
||||
hass, mqtt_mock, caplog, vacuum.DOMAIN, data1, data2
|
||||
hass, mqtt_mock, caplog, vacuum.DOMAIN, config1, config2
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue