Require core config detection to be triggerd manually (#24019)

* Detect core config

* Remove elevation

* Lint

* Lint

* Fix type
This commit is contained in:
Paulus Schoutsen 2019-05-22 17:24:46 -07:00 committed by GitHub
parent f207e01510
commit 9e96397e6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 188 additions and 323 deletions

View file

@ -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()