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:
1 parent
b2210f429e
commit
16d72d2351
5 files changed
+316
-254
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user