mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Expose Configuration path to frontend (#3660)
* Expose config path to frontend * Fix typo * Add deleted code.
This commit is contained in:
parent
b586e80977
commit
0219df17f5
@ -1088,6 +1088,7 @@ class Config(object):
|
||||
'location_name': self.location_name,
|
||||
'time_zone': time_zone.zone,
|
||||
'components': self.components,
|
||||
'config_dir': self.config_dir,
|
||||
'version': __version__
|
||||
}
|
||||
|
||||
|
@ -448,6 +448,7 @@ class TestConfig(unittest.TestCase):
|
||||
|
||||
def test_as_dict(self):
|
||||
"""Test as dict."""
|
||||
self.config.config_dir = '/tmp/ha-config'
|
||||
expected = {
|
||||
'latitude': None,
|
||||
'longitude': None,
|
||||
@ -455,6 +456,7 @@ class TestConfig(unittest.TestCase):
|
||||
'location_name': None,
|
||||
'time_zone': 'UTC',
|
||||
'components': [],
|
||||
'config_dir': '/tmp/ha-config',
|
||||
'version': __version__,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user