mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-09 02:06:30 +00:00
Revert "Revert Home Assistant configuration to /config
" (#4702)
This commit is contained in:
parent
3116f183f5
commit
bef0f023d4
@ -360,18 +360,18 @@ class DockerAddon(DockerInterface):
|
||||
Mount(
|
||||
type=MountType.BIND,
|
||||
source=self.addon.path_extern_config.as_posix(),
|
||||
target="/addon_config",
|
||||
target="/config",
|
||||
read_only=addon_mapping[MAP_ADDON_CONFIG],
|
||||
)
|
||||
)
|
||||
|
||||
# Map Home Assistant config using the new mapping to /config still
|
||||
# Map Home Assistant config in new way
|
||||
if MAP_HOMEASSISTANT_CONFIG in addon_mapping:
|
||||
mounts.append(
|
||||
Mount(
|
||||
type=MountType.BIND,
|
||||
source=self.sys_config.path_extern_homeassistant.as_posix(),
|
||||
target="/config",
|
||||
target="/homeassistant",
|
||||
read_only=addon_mapping[MAP_HOMEASSISTANT_CONFIG],
|
||||
)
|
||||
)
|
||||
|
@ -149,12 +149,12 @@ def test_addon_map_homeassistant_folder(
|
||||
config["map"].append("homeassistant_config")
|
||||
docker_addon = get_docker_addon(coresys, addonsdata_system, config)
|
||||
|
||||
# Home Assistant config folder still mounted to /config
|
||||
# Home Assistant config folder mounted to /homeassistant, not /config
|
||||
assert (
|
||||
Mount(
|
||||
type="bind",
|
||||
source=coresys.config.path_extern_homeassistant.as_posix(),
|
||||
target="/config",
|
||||
target="/homeassistant",
|
||||
read_only=True,
|
||||
)
|
||||
in docker_addon.mounts
|
||||
@ -194,7 +194,7 @@ def test_addon_map_addon_config_folder(
|
||||
Mount(
|
||||
type="bind",
|
||||
source=docker_addon.addon.path_extern_config.as_posix(),
|
||||
target="/addon_config",
|
||||
target="/config",
|
||||
read_only=True,
|
||||
)
|
||||
in docker_addon.mounts
|
||||
|
Loading…
x
Reference in New Issue
Block a user