Skip to content

Commit 4a1b3a4

Browse files
committed
always use our ha links
1 parent 8292ec7 commit 4a1b3a4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

supervisor/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
SERVER_SOFTWARE = f"HomeAssistantSupervisor/{SUPERVISOR_VERSION} aiohttp/{aiohttpversion} Python/{systemversion[0]}.{systemversion[1]}"
1414

1515
URL_HASSIO_ADDONS = "https://github.com/home-assistant/addons"
16-
URL_HASSIO_APPARMOR = "https://version.home-assistant.io/apparmor_{channel}.txt"
16+
URL_HASSIO_APPARMOR = "https://ameridroid.github.io/HA-version/apparmor_{channel}.txt"
1717
URL_HASSIO_VERSION = "https://ameridroid.github.io/HA-version/{channel}.json"
1818

1919
SUPERVISOR_DATA = Path("/data")

supervisor/supervisor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ async def check_connectivity(self):
287287
timeout = aiohttp.ClientTimeout(total=10)
288288
try:
289289
await self.sys_websession.head(
290-
"https://checkonline.home-assistant.io/online.txt", timeout=timeout
290+
"https://ameridroid.github.io/HA-version/online.txt", timeout=timeout
291291
)
292292
except (ClientError, TimeoutError):
293293
# Need to recreate the websession to avoid stale connection checks

tests/test_supervisor.py

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

120120
get.assert_called_once_with(
121-
f"https://version.home-assistant.io/apparmor_{channel}.txt",
121+
f"https://ameridroid.github.io/HA-version/apparmor_{channel}.txt",
122122
timeout=ClientTimeout(total=10),
123123
)
124124
load_profile.assert_called_once()

tests/test_updater.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
NetworkManager as NetworkManagerService,
1717
)
1818

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

2121

2222
@pytest.mark.usefixtures("no_job_throttle")
@@ -127,5 +127,5 @@ async def find_fetch_data_job_start(job: SupervisorJob):
127127
coresys.websession.get.assert_called_once()
128128
assert (
129129
coresys.websession.get.call_args[0][0]
130-
== "https://version.home-assistant.io/stable.json"
130+
== "https://ameridroid.github.io/HA-version/stable.json"
131131
)

0 commit comments

Comments
 (0)