Remove unused parameter for MQTT discovery (#36526)
* Remove unused parameter for MQTT discovery * Fix tests
This commit is contained in:
1 parent
823f27db5a
commit
35cd6b9abf
10 files changed
+74
-87
No files matched your search
@@ -1426,7 +1426,7 @@ async def test_discovery_removal_light(hass, mqtt_mock, caplog):
|
||||
async def test_discovery_deprecated(hass, mqtt_mock, caplog):
|
||||
"""Test discovery of mqtt light with deprecated platform option."""
|
||||
entry = MockConfigEntry(domain=mqtt.DOMAIN)
|
||||
await async_start(hass, "homeassistant", {"mqtt": {}}, entry)
|
||||
await async_start(hass, "homeassistant", entry)
|
||||
data = (
|
||||
'{ "name": "Beer",' ' "platform": "mqtt",' ' "command_topic": "test_topic"}'
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user