From 04b0987781978b7edff5e4acd5b0626f4bd3760a Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Fri, 12 Apr 2024 14:39:36 +0300 Subject: [PATCH] feat(update): update Mikrotik RouterOS changelog URL This commit updates the URL used to fetch the Mikrotik RouterOS changelog. Previously, the integration fetched the changelog from a general Mikrotik changelogs page, which required specifying the version as a parameter. This approach has been changed to directly access the changelog from the CDN for the specific RouterOS version in question. The change ensures that the integration directly accesses the relevant changelog file for the specified RouterOS version, potentially improving reliability and speed of access to these changelogs. This modification is particularly useful for environments where RouterOS updates are closely monitored, and up-to-date information is critical for maintaining system security and performance. --- custom_components/mikrotik_router/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/mikrotik_router/update.py b/custom_components/mikrotik_router/update.py index 8ed0005..cb8d007 100644 --- a/custom_components/mikrotik_router/update.py +++ b/custom_components/mikrotik_router/update.py @@ -1,4 +1,5 @@ """Support for the Mikrotik Router update service.""" + from __future__ import annotations from logging import getLogger @@ -92,7 +93,7 @@ class MikrotikRouterOSUpdate(MikrotikEntity, UpdateEntity): try: response = await self.coordinator.hass.async_add_executor_job( requests_get, - f"https://mikrotik.com/download/changelogs?ax=loadLog&val={self._data['latest-version']}", + f"https://cdn.mikrotik.com/routeros/{self._data['latest-version']}/CHANGELOG", ) if response.status_code == 200: