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:
parent
a8ca73a7dd
commit
5b55c7da5f
20 changed files with 112 additions and 47 deletions
|
@ -272,7 +272,7 @@ async def test_zwave_js_value_updated(
|
|||
|
||||
clear_events()
|
||||
|
||||
with patch("homeassistant.config.load_yaml", return_value={}):
|
||||
with patch("homeassistant.config.load_yaml_dict", return_value={}):
|
||||
await hass.services.async_call(automation.DOMAIN, SERVICE_RELOAD, blocking=True)
|
||||
|
||||
|
||||
|
@ -834,7 +834,7 @@ async def test_zwave_js_event(
|
|||
|
||||
clear_events()
|
||||
|
||||
with patch("homeassistant.config.load_yaml", return_value={}):
|
||||
with patch("homeassistant.config.load_yaml_dict", return_value={}):
|
||||
await hass.services.async_call(automation.DOMAIN, SERVICE_RELOAD, blocking=True)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue