Better errors for unknown secrets (#13072)
This commit is contained in:
1 parent
d74a2b68c1
commit
f164a5a65f
2 files changed
+6
-3
No files matched your search
@@ -288,8 +288,7 @@ def _secret_yaml(loader: SafeLineLoader,
|
||||
# Catch if package installed and no config
|
||||
credstash = None
|
||||
|
||||
_LOGGER.error("Secret %s not defined", node.value)
|
||||
raise HomeAssistantError(node.value)
|
||||
raise HomeAssistantError("Secret {} not defined".format(node.value))
|
||||
|
||||
|
||||
yaml.SafeLoader.add_constructor('!include', _include_yaml)
|
||||
|
||||
Reference in new issue
Block a user