Commit graph

580 commits

Author SHA1 Message Date
Tomaae
de1ca6a6f6
Change board name for non mikrotik hardware #363 2024-07-06 15:23:57 +02:00
Sergey Krashevich
502bebb766
fix(mikrotik_router): ensure proper spacing in combined changelogs 2024-04-19 20:45:21 +03:00
Sergey Krashevich
b9d87cd6aa
feat(mikrotik_router): fetch and concatenate changelogs for updates in reverse order 2024-04-16 18:31:35 +03:00
Sergey Krashevich
b6c89fb152
refactor(mikrotik_router): remove unused aiohttp import from update module 2024-04-16 18:03:00 +03:00
Sergey Krashevich
2aa2191334
refactor(mikrotik_router): use existing session for fetching release notes
Optimized the process of fetching release notes in the Mikrotik Router integration by utilizing the existing HTTP client session from Home Assistant's aiohttp_client. This change avoids creating a new session for each request, leading to more efficient resource usage and potentially reducing the likelihood of encountering issues related to session management.

By leveraging `async_get_clientsession`, the update component now aligns better with Home Assistant's recommended practices for external HTTP requests, ensuring consistency and reliability in how network calls are made within integrations.
2024-04-16 17:58:26 +03:00
Sergey Krashevich
ccc097c438
feat(mikrotik_router): switch to aiohttp for async release notes fetching
This commit replaces the synchronous requests library with aiohttp for asynchronous fetching of Mikrotik RouterOS update release notes. It introduces the use of Home Assistant's built-in `async_create_clientsession` to manage HTTP sessions, enhancing the integration's performance and reliability by leveraging asyncio for network operations.

The change aims to improve the responsiveness and efficiency of the Mikrotik Router integration within Home Assistant, particularly in retrieving release notes for updates. By moving to an asynchronous model, the integration can now fetch data without blocking the execution of other tasks, leading to a smoother user experience.

Additionally, the error handling has been updated to provide clearer messages in the log when the release notes cannot be fetched, either due to a network error or an exception. This improvement aids in troubleshooting and ensures that users are better informed about the status of their update checks.
2024-04-16 17:57:02 +03:00
Sergey Krashevich
8e8ff310c1
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.
2024-04-16 17:57:01 +03:00
Sergey Krashevich
04b0987781
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.
2024-04-16 17:55:55 +03:00
Tomaae
50abfe86b6
Update coordinator.py
Futureproof wifi module 7.13 change
2024-02-14 22:05:09 +01:00
Robert Dunmire III
6bc441558f Update coordinator.py 2023-12-27 09:28:17 -05:00
Robert Dunmire III
e828e0bf0a Fixes from code review 2023-12-16 12:57:01 -05:00
Robert Dunmire III
1bbedfaa8b Fix for ros 7.13 wireless 2023-12-08 10:30:15 -05:00
Tomaae
a61dfa5ff7
fixed uom for interfaces, fixes #325 2023-12-07 00:54:23 +01:00
Tomaae
80bae0c34d
black 2023-11-06 00:48:47 +01:00
Andrey Chalkin
13e765c10a
feat: netwatch binary sensor 2023-10-15 17:16:33 +02:00
Tomaae
2cdd645274
removed forgotten dev print 2023-10-06 02:07:51 +02:00
Tomaae
355d16ff4f
Merge remote-tracking branch 'origin/master' 2023-09-18 09:28:19 +02:00
Tomaae
5809d0aad9 Lokalise: updates 2023-09-18 09:27:03 +02:00
Tomaae
da894aa32a
Fixed MikrotikOS v6 system health sensor default values, ref #300 2023-09-18 09:19:07 +02:00
Tomaae
975f882416
Added query path into query error 2023-09-18 09:07:10 +02:00
Tomaae
715ead5458
Fixed diagnostics, fixes #303 2023-09-18 08:52:37 +02:00
Tomaae
4b610ba4e5
Fixed traffic sensor names, ref #306 2023-09-18 08:48:45 +02:00
Tomaae
6079affcfa
Fixed device tracker names 2023-09-12 12:00:42 +02:00
Tomaae
d3a2432eb7
Fixed entity names 2023-09-12 11:49:27 +02:00
Tomaae
2349584551
Do not process device tracker when tracking coordinator is disabled 2023-09-12 11:22:01 +02:00
Tomaae
4abf5b210d
added Callable definition 2023-09-12 11:13:53 +02:00
Tomaae
c8728238af
rebase 2023-08-31 02:53:34 +02:00
Tomaae
e1e9f61e08
cleanup 2023-08-10 02:21:16 +02:00
Tomaae
9c5a270b4f
cleanup 2023-08-10 02:03:11 +02:00
Tomaae
efe3de0c20
added coordinator for device tracker 2023-08-09 23:00:00 +02:00
Tomaae
ebee5a34e2
reverted to standard scan interval 2023-08-09 13:55:53 +02:00
Tomaae
ca58ee6007
fixed traffic uom 2023-08-09 13:55:31 +02:00
Tomaae
04e0d875cf
fixed client traffic sensors 2023-08-09 11:54:08 +02:00
Tomaae
51c9c62859
fixed "Ignoring invalid device info" error from 2023.8, fixes #292 2023-08-09 11:33:38 +02:00
Tomaae
c83e735724
merged hwinfo and fwupdate_check into main update loop 2023-08-09 10:49:49 +02:00
Tomaae
b8f4856a5b
converted device tracker 2023-08-09 10:19:04 +02:00
Tomaae
514a930d04
fixed firmware update sensor 2023-08-09 10:18:46 +02:00
Tomaae
6caaa4e891
converted buttons 2023-08-09 09:59:50 +02:00
Tomaae
15bc156d74
converted update sensors 2023-08-09 09:53:48 +02:00
Tomaae
eae9fd7e2d
fixed switch control 2023-08-09 09:48:08 +02:00
Tomaae
727a075dbb
converted switches 2023-08-09 09:37:48 +02:00
Tomaae
2ea35dec75
converted binary sensors 2023-08-09 09:33:52 +02:00
Tomaae
cace2ae3e5
removed unnecessery MikrotikClientTrafficSensor 2023-08-09 09:25:33 +02:00
Tomaae
7a892b6800
cleanup 2023-08-09 02:33:49 +02:00
Tomaae
3869e670a6
removed available override 2023-08-09 02:32:35 +02:00
Tomaae
7c2e61e4d6
Removed asyncio locks 2023-08-09 02:24:49 +02:00
Tomaae
009d8c6085
removed async_added/removed_to_hass override 2023-08-09 02:24:20 +02:00
Tomaae
a21e95c36a
coordinator update 2023-08-08 00:50:09 +02:00
Ivan Pavlina
d8d8552dd0 black formatting 2023-05-31 07:46:52 +00:00
Ivan Pavlina
22844e7ae5 added attributes to execute method, using it on check-for-updates. hardcoded 10 seconds for duration 2023-05-31 06:56:50 +00:00