mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
Allow upgrade when using {os_name} in URL (#2974)
Once {os_name} is part of the update URL we also need to set the OS name explicitly for upgrades: A user might use a new Supervisor version on a OS release 5 device. The device will still use "hassos" as OS name. Before introducing {os_name}, the new OS name was part of the URL. Now when {os_name} is used, we need to adjust the name for upgrade as well.
This commit is contained in:
parent
ece40008c7
commit
7bbfb60039
@ -76,6 +76,8 @@ class HassOS(CoreSysAttributes):
|
||||
# The OS name used to be hassos before renaming to haos...
|
||||
if version < 6.0:
|
||||
update_os_name = "hassos"
|
||||
else:
|
||||
update_os_name = "haos"
|
||||
|
||||
url = raw_url.format(
|
||||
version=str(version), board=update_board, os_name=update_os_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user