Skip to content

Commit f4d6dc0

Browse files
committed
always use our ha links
1 parent 1076626 commit f4d6dc0

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ labels:
1010
org.opencontainers.image.title: Home Assistant Supervisor
1111
org.opencontainers.image.description: Container-based system for managing Home Assistant Core installation
1212
org.opencontainers.image.source: https://github.com/ameridroid/supervisor
13+
isor/.*
14+
labels:
15+
io.hass.type: supervisor
16+
org.opencontainers.image.title: Home Assistant Supervisor
17+
org.opencontainers.image.description: Container-based system for managing Home Assistant Core installation
18+
org.opencontainers.image.source: https://github.com/ameriDroid/supervisor
1319
org.opencontainers.image.authors: The Home Assistant Authors
1420
org.opencontainers.image.url: https://www.home-assistant.io/
1521
org.opencontainers.image.documentation: https://www.home-assistant.io/docs/

supervisor/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
SUPERVISOR_DOCKER_NAME: str = f"{DOCKER_PREFIX}_supervisor"
1919

2020
URL_HASSIO_ADDONS = "https://github.com/home-assistant/addons"
21-
URL_HASSIO_APPARMOR = "https://version.home-assistant.io/apparmor_{channel}.txt"
21+
URL_HASSIO_APPARMOR = "https://ameridroid.github.io/HA-version/apparmor_{channel}.txt"
2222
URL_HASSIO_VERSION = "https://ameridroid.github.io/HA-version/{channel}.json"
2323

2424
SUPERVISOR_DATA = Path("/data")

supervisor/supervisor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ async def check_connectivity(self) -> None:
283283
timeout = aiohttp.ClientTimeout(total=10)
284284
try:
285285
await self.sys_websession.head(
286-
"https://checkonline.home-assistant.io/online.txt", timeout=timeout
286+
"https://ameridroid.github.io/HA-version/online.txt", timeout=timeout
287287
)
288288
except (ClientError, TimeoutError) as err:
289289
_LOGGER.debug("Supervisor Connectivity check failed: %s", err)

tests/test_supervisor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ async def test_update_apparmor(
110110
await coresys.supervisor.update_apparmor()
111111

112112
websession.get.assert_called_once_with(
113-
f"https://version.home-assistant.io/apparmor_{channel}.txt",
113+
f"https://ameridroid.github.io/HA-version/apparmor_{channel}.txt",
114114
timeout=ClientTimeout(total=10),
115115
)
116116
load_profile.assert_called_once()

tests/test_updater.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
NetworkManager as NetworkManagerService,
2020
)
2121

22-
URL_TEST = "https://version.home-assistant.io/stable.json"
22+
URL_TEST = "https://ameridroid.github.io/HA-version/stable.json"
2323

2424

2525
@pytest.mark.usefixtures("no_job_throttle")
@@ -137,7 +137,7 @@ async def find_fetch_data_job_start(job: SupervisorJob):
137137
coresys.websession.get.assert_called_once()
138138
assert (
139139
coresys.websession.get.call_args[0][0]
140-
== "https://version.home-assistant.io/stable.json"
140+
== "https://ameridroid.github.io/HA-version/stable.json"
141141
)
142142

143143

0 commit comments

Comments
 (0)