mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +00:00
Gracefully allow loading duplicate keys in secrets (#1347)
This commit is contained in:
parent
05d7eff09a
commit
71a162a871
@ -50,6 +50,7 @@ class SecretsManager(CoreSysAttributes):
|
||||
# Read secrets
|
||||
try:
|
||||
yaml = YAML()
|
||||
yaml.allow_duplicate_keys = True
|
||||
data = await self.sys_run_in_executor(yaml.load, self.path_secrets) or {}
|
||||
|
||||
# Filter to only get supported values
|
||||
|
Loading…
x
Reference in New Issue
Block a user