Commit graph

598 commits

Author SHA1 Message Date
Tomaae
b15940fc8e
Added more health sensors, fixes #320 2025-05-01 12:11:15 +02:00
Tomaae
a1b2851193
Fixed reboot check, fixes #389 2025-05-01 11:59:18 +02:00
Tomaae
a8547b71dd
Merge remote-tracking branch 'origin/master' 2025-05-01 11:25:19 +02:00
Tomaae
6487398741
Reworked scripts to buttons only, fixes #414 2025-05-01 11:21:10 +02:00
Tomaae
ee886e0365
Fixed invalid escape sequence, fixes #401 2025-05-01 10:48:35 +02:00
Tomaae
6f888a5c08
Added config entry migration for SSL Verify option 2025-05-01 10:37:45 +02:00
Tomaae
81dc2d8f73 Lokalise: updates 2025-04-30 13:53:37 +02:00
Tomaae
8e68931e57
Added SSL Verify option 2025-04-30 13:35:45 +02:00
Michel van de Wetering
013f946681 Fix wrong typehint 2025-04-25 22:06:20 +02:00
Michel van de Wetering
5650d7f5ca Format with black 2025-04-25 21:49:43 +02:00
Michel van de Wetering
44fe6a626b Use raw string for regex 2025-04-25 21:08:08 +02:00
Tomaae
07f81b887e
Updated librouteros requirement to 3.4.1 2025-02-02 05:16:09 +01:00
Tomaae
339b01dda3
Merge pull request #377 from arfoll/patch-2
Update sensor_types.py: Add system poe out
2025-01-08 01:00:51 +01:00
Tomaae
8ca38e19c0
Merge pull request #370 from lnicolas83/add_phy-temperature
Add health sensor phy-temperature
2025-01-08 00:59:30 +01:00
mvn23
464ba7b768 Fix version check for devices without a physical wifi radio 2025-01-03 13:31:10 +01:00
mvn23
cf1b56c51e Add wifi (capsman) support for devices without a physical wifi radio running routeros 7.13+ 2024-10-09 14:02:05 +02:00
Brendan Le Foll
6de1a940ed
Update sensor_types.py: Add system poe out
Add POE total power consumption - at least on CRS328-24P
2024-10-04 16:03:33 +02:00
Nicolas Lisoski
b3aa0e3d90 Add sensor phy-temperature 2024-07-19 10:28:53 +02:00
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