hass-core/homeassistant/util/yaml/__init__.py
Erik Montnemery 5b55c7da5f
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
2023-12-05 18:08:11 +01:00

29 lines
574 B
Python

"""YAML utility functions."""
from .const import SECRET_YAML
from .dumper import dump, save_yaml
from .input import UndefinedSubstitution, extract_inputs, substitute
from .loader import (
Secrets,
YamlTypeError,
load_yaml,
load_yaml_dict,
parse_yaml,
secret_yaml,
)
from .objects import Input
__all__ = [
"SECRET_YAML",
"Input",
"dump",
"save_yaml",
"Secrets",
"YamlTypeError",
"load_yaml",
"load_yaml_dict",
"secret_yaml",
"parse_yaml",
"UndefinedSubstitution",
"extract_inputs",
"substitute",
]