Pass hass_config to load_platform (#17952)

* Pass hass_config to load_platform

* Fix tests

* Lint
This commit is contained in:
Paulus Schoutsen authored and Paulus Schoutsen committed 2018-10-29 19:22:40 +01:00
1 parent 04e0fd1d46
commit 3a8891d9ac
21 files changed
+70 -57

No files matched your search

+1 -1
View File
@@ -674,7 +674,7 @@ class TestLightMQTTJSON(unittest.TestCase):
async def test_discovery_removal(hass, mqtt_mock, caplog):
"""Test removal of discovered mqtt_json lights."""
await async_start(hass, 'homeassistant', {})
await async_start(hass, 'homeassistant', {'mqtt': {}})
data = (
'{ "name": "Beer",'
' "platform": "mqtt_json",'