mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-15 22:10:12 +00:00
Add support for media folder (#2034)
This commit is contained in:
@@ -19,6 +19,7 @@ from ..const import (
|
||||
MAP_ADDONS,
|
||||
MAP_BACKUP,
|
||||
MAP_CONFIG,
|
||||
MAP_MEDIA,
|
||||
MAP_SHARE,
|
||||
MAP_SSL,
|
||||
SECURITY_DISABLE,
|
||||
@@ -269,6 +270,16 @@ class DockerAddon(DockerInterface):
|
||||
}
|
||||
)
|
||||
|
||||
if MAP_MEDIA in addon_mapping:
|
||||
volumes.update(
|
||||
{
|
||||
str(self.sys_config.path_extern_media): {
|
||||
"bind": "/media",
|
||||
"mode": addon_mapping[MAP_MEDIA],
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
# Init other hardware mappings
|
||||
|
||||
# GPIO support
|
||||
|
||||
Reference in New Issue
Block a user