mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-16 04:14:31 +02:00
feat(mikrotik_router): format release notes for better readability
This commit updates the handling of MikroTik RouterOS update release notes within the custom component. Specifically, it modifies the formatting of the release notes text by replacing instances of "*) " with "- ", in addition to converting newline characters to "<br />" HTML tags. This change aims to improve the readability of the release notes when displayed in the UI, making it easier for users to understand the changes in each RouterOS update.
This commit is contained in:
parent
04b0987781
commit
8e8ff310c1
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class MikrotikRouterOSUpdate(MikrotikEntity, UpdateEntity):
|
|||
)
|
||||
|
||||
if response.status_code == 200:
|
||||
return response.text.replace(chr(10), "<br />")
|
||||
return response.text.replace(chr(10), "<br />").replace("*) ", "- ")
|
||||
|
||||
except Exception as e:
|
||||
_LOGGER.warning("Failed to download release notes (%s)", e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue