Remove unused parameter for MQTT discovery (#36526)

* Remove unused parameter for MQTT discovery

* Fix tests
This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-06-07 19:35:35 +02:00
1 parent 823f27db5a
commit 35cd6b9abf
10 files changed
+74 -87

No files matched your search

+2 -2
View File
@@ -156,7 +156,7 @@ async def test_discovery_removal_camera(hass, mqtt_mock, caplog):
async def test_discovery_update_camera(hass, mqtt_mock, caplog):
"""Test update of discovered camera."""
entry = MockConfigEntry(domain=mqtt.DOMAIN)
await async_start(hass, "homeassistant", {}, entry)
await async_start(hass, "homeassistant", entry)
data1 = '{ "name": "Beer",' ' "topic": "test_topic"}'
data2 = '{ "name": "Milk",' ' "topic": "test_topic"}'
@@ -170,7 +170,7 @@ async def test_discovery_update_camera(hass, mqtt_mock, caplog):
async def test_discovery_broken(hass, mqtt_mock, caplog):
"""Test handling of bad discovery message."""
entry = MockConfigEntry(domain=mqtt.DOMAIN)
await async_start(hass, "homeassistant", {}, entry)
await async_start(hass, "homeassistant", entry)
data1 = '{ "name": "Beer" }'
data2 = '{ "name": "Milk",' ' "topic": "test_topic"}'