Require core config detection to be triggerd manually (#24019)
* Detect core config * Remove elevation * Lint * Lint * Fix type
This commit is contained in:
parent
f207e01510
commit
9e96397e6a
12 changed files with 188 additions and 323 deletions
|
@ -891,17 +891,17 @@ class TestConfig(unittest.TestCase):
|
|||
"""Test as dict."""
|
||||
self.config.config_dir = '/tmp/ha-config'
|
||||
expected = {
|
||||
'latitude': None,
|
||||
'longitude': None,
|
||||
'elevation': None,
|
||||
'latitude': 0,
|
||||
'longitude': 0,
|
||||
'elevation': 0,
|
||||
CONF_UNIT_SYSTEM: METRIC_SYSTEM.as_dict(),
|
||||
'location_name': None,
|
||||
'location_name': "Home",
|
||||
'time_zone': 'UTC',
|
||||
'components': set(),
|
||||
'config_dir': '/tmp/ha-config',
|
||||
'whitelist_external_dirs': set(),
|
||||
'version': __version__,
|
||||
'config_source': None,
|
||||
'config_source': "default",
|
||||
}
|
||||
|
||||
assert expected == self.config.as_dict()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue