mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Improve formatting of config validation errors (#103957)
* Improve formatting of config validation errors * Address review comments
This commit is contained in:
@@ -83,8 +83,7 @@ async def test_bad_core_config(hass: HomeAssistant) -> None:
|
||||
(
|
||||
"Invalid config for [homeassistant] at "
|
||||
f"{hass.config.path(YAML_CONFIG_FILE)}, line 2: "
|
||||
"not a valid value for dictionary value @ data['unit_system']. Got "
|
||||
"'bad'."
|
||||
"not a valid value for dictionary value 'unit_system', got 'bad'."
|
||||
),
|
||||
"homeassistant",
|
||||
{"unit_system": "bad"},
|
||||
|
||||
Reference in New Issue
Block a user