Load HA core config from storage (#23872)

* Load HA core config from storage

* Tweak

* Lint, review comments

* Fix test

* Add tests

* Lint

* Address comments
This commit is contained in:
Erik Montnemery authored and Paulus Schoutsen committed 2019-05-16 16:27:53 +02:00
1 parent 9be384690a
commit c2fc8a0d61
4 files changed
+137 -15

No files matched your search

+4 -1
View File
@@ -1177,6 +1177,8 @@ class Config:
self.time_zone = None # type: Optional[datetime.tzinfo]
self.units = METRIC_SYSTEM # type: UnitSystem
self.config_source = None # type: Optional[str]
# If True, pip install is skipped for requirements on startup
self.skip_pip = False # type: bool
@@ -1251,7 +1253,8 @@ class Config:
'components': self.components,
'config_dir': self.config_dir,
'whitelist_external_dirs': self.whitelist_external_dirs,
'version': __version__
'version': __version__,
'config_source': self.config_source
}