1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Add null check on user path in mounts (#5446)

This commit is contained in:
Mike Degatano
2024-11-22 09:54:21 -05:00
committed by GitHub
parent 7a55f58a5f
commit d11d59dd92

View File

@@ -35,7 +35,9 @@ class APIMounts(CoreSysAttributes):
mount.to_dict()
| {
ATTR_STATE: mount.state,
ATTR_USER_PATH: mount.container_where.as_posix(),
ATTR_USER_PATH: mount.container_where.as_posix()
if mount.container_where
else None,
}
for mount in self.sys_mounts.mounts
],