Add native Python types support to templates (#41227)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
1 parent
cbb4324c84
commit
ee914366a8
29 files changed
+349
-282
No files matched your search
@@ -471,6 +471,7 @@ async def test_loading_configuration(hass):
|
||||
"external_url": "https://www.example.com",
|
||||
"internal_url": "http://example.local",
|
||||
"media_dirs": {"mymedia": "/usr"},
|
||||
"legacy_templates": True,
|
||||
},
|
||||
)
|
||||
|
||||
@@ -487,6 +488,7 @@ async def test_loading_configuration(hass):
|
||||
assert "/usr" in hass.config.allowlist_external_dirs
|
||||
assert hass.config.media_dirs == {"mymedia": "/usr"}
|
||||
assert hass.config.config_source == config_util.SOURCE_YAML
|
||||
assert hass.config.legacy_templates is True
|
||||
|
||||
|
||||
async def test_loading_configuration_temperature_unit(hass):
|
||||
|
||||
Reference in new issue
Block a user