mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
MQTT discovery (#5724)
* Change implementation * Re-write * Remove unused consts * Update discovery.py * Add tests * fix other tests * Fix check_config script test * Lint * Lint
This commit is contained in:
committed by
Paulus Schoutsen
parent
45507cd9d1
commit
c7fd28c10f
@@ -101,7 +101,13 @@ class TestCheckConfig(unittest.TestCase):
|
||||
res = check_config.check(get_test_config_dir('platform.yaml'))
|
||||
change_yaml_files(res)
|
||||
self.assertDictEqual(
|
||||
{'mqtt': {'keepalive': 60, 'port': 1883, 'protocol': '3.1.1'},
|
||||
{'mqtt': {
|
||||
'keepalive': 60,
|
||||
'port': 1883,
|
||||
'protocol': '3.1.1',
|
||||
'discovery': False,
|
||||
'discovery_prefix': 'homeassistant',
|
||||
},
|
||||
'light': []},
|
||||
res['components']
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user