check_config script evolution (#12792)

* Initial async_check_ha_config_file

* check_ha_config_file

* Various fixes

* feedback - return the config

* move_to_check_config
This commit is contained in:
Johann Kellerman authored and Paulus Schoutsen committed 2018-03-09 09:31:13 -08:00
1 parent b2210f429e
commit 16d72d2351
5 files changed
+316 -254

No files matched your search

+2 -2
View File
@@ -158,11 +158,11 @@ class TestConfig(unittest.TestCase):
def test_load_yaml_config_preserves_key_order(self):
"""Test removal of library."""
with open(YAML_PATH, 'w') as f:
f.write('hello: 0\n')
f.write('hello: 2\n')
f.write('world: 1\n')
self.assertEqual(
[('hello', 0), ('world', 1)],
[('hello', 2), ('world', 1)],
list(config_util.load_yaml_config_file(YAML_PATH).items()))
@mock.patch('homeassistant.util.location.detect_location_info',