mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add default config if not there (#43321)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
@@ -165,4 +165,4 @@ action:
|
||||
}
|
||||
with patch("os.path.isfile", return_value=True), patch_yaml_files(files):
|
||||
res = await async_check_ha_config_file(hass)
|
||||
assert len(res["automation"]) == 1
|
||||
assert len(res.get("automation", [])) == 1
|
||||
|
||||
Reference in New Issue
Block a user