mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 05:36:29 +00:00
Fix 'CommentedSeq' object has no attribute 'items' (#2064)
This commit is contained in:
parent
78f63380f2
commit
2ca2701f7a
@ -58,7 +58,7 @@ class HomeAssistantSecrets(CoreSysAttributes):
|
||||
k: v for k, v in data.items() if isinstance(v, (bool, float, int, str))
|
||||
}
|
||||
|
||||
except YAMLError as err:
|
||||
except (YAMLError, AttributeError) as err:
|
||||
_LOGGER.error("Can't process Home Assistant secrets: %s", err)
|
||||
else:
|
||||
_LOGGER.debug("Reload Home Assistant secrets: %s", len(self.secrets))
|
||||
|
Loading…
x
Reference in New Issue
Block a user