mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 22:56:31 +00:00
Add null check on user path in mounts (#5446)
This commit is contained in:
parent
7a55f58a5f
commit
d11d59dd92
@ -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
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user