mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 21:56:29 +00:00
Null check for meta in meta_mounts (#4326)
This commit is contained in:
parent
1feda7d89f
commit
b86a6d292f
@ -114,6 +114,8 @@ class DockerInterface(CoreSysAttributes):
|
||||
@property
|
||||
def meta_mounts(self) -> list[dict[str, Any]]:
|
||||
"""Return meta data of mounts for container/image."""
|
||||
if not self._meta:
|
||||
return []
|
||||
return self._meta.get("Mounts", [])
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user