Remove logic converting empty or falsy YAML to empty dict (#103912)

* Correct logic converting empty YAML to empty dict

* Modify according to github comments

* Add load_yaml_dict helper

* Update check_config script

* Update tests
This commit is contained in:
Erik Montnemery 2023-12-05 18:08:11 +01:00 committed by GitHub
parent a8ca73a7dd
commit 5b55c7da5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 112 additions and 47 deletions

View file

@ -1102,7 +1102,7 @@ async def test_reload_automation_when_blueprint_changes(
autospec=True,
return_value=config,
), patch(
"homeassistant.components.blueprint.models.yaml.load_yaml",
"homeassistant.components.blueprint.models.yaml.load_yaml_dict",
autospec=True,
return_value=blueprint_config,
):