Commit graph

20 commits

Author SHA1 Message Date
Cosmin Luță
8807878529
Add Mikrotik WifiWave2 (#89711)
* Add support for wifiwave2

* Add test for wifiwave2
2023-03-28 08:46:16 +02:00
Rami Mosleh
38a680c3eb
Add reauthenticaion to mikrotik (#74454) 2022-10-01 20:37:24 -07:00
Rami Mosleh
655e2f92ba
Add strict typing to mikrotik (#76974)
add strict typing to mikrotik
2022-08-19 10:39:14 +02:00
Rami Mosleh
ff255fedda
Fix nullable ip_address in mikrotik (#76197) 2022-08-04 16:04:12 +02:00
Rami Mosleh
d33779d3a0
Cleanup mikrotik device extra_attributes (#74491) 2022-07-09 23:33:10 +02:00
Rami Mosleh
b09aaba421
Add type hints and code cleanup for mikrotik (#74296)
* Add type hints and code cleanup for mikrotik

* update test and increase coverage

* move setup_mikrotik_entry to __init__.py
2022-07-05 09:16:38 +02:00
Rami Mosleh
8905e6f726
Use DataUpdateCoordinator for mikrotik (#72954) 2022-06-29 08:32:29 -05:00
J. Nick Koston
b10534359b
Reduce config entry setup/unload boilerplate K-M (#49775) 2021-04-27 18:49:13 +02:00
Franck Nijhof
86212db71d
Merge of nested IF-IF cases - K-N (#48370) 2021-03-27 10:03:15 +01:00
J. Nick Koston
11cbf1152d
Add dhcp discovery properties to mikrotik (#45205) 2021-01-17 00:26:32 +01:00
Ville Skyttä
1bf2c4d976
Upgrade pylint to 2.6.0 (#39363) 2020-08-29 07:59:24 +02:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements (#39320)
* Remove unnecessary exception re-wraps

* Preserve exception chains on re-raise

We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.

The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.

Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.

* Fix mistaken re-wrap in homematicip_cloud/hap.py

Missed the difference between HmipConnectionError and
HmipcConnectionError.

* Do not hide original error on plex new cert validation error

Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 (#39287) 2020-08-27 13:56:20 +02:00
Janis Jansons
17c9e31e2c
Fix Mikrotik encoding by setting utf8 (#38091) 2020-08-05 01:39:55 +02:00
Franck Nijhof
6f1900c6f4
Replace OSError aliases with OSError (#33655) 2020-04-04 22:09:11 +02:00
Rami Mosleh
576970d1ad
Fix setting up options due to config data freeze (#32872) 2020-03-17 21:19:42 +01:00
Marco
20d7c84b22
Fix mikrotik detecting capsman support (#31819)
* fix detecting capsman support

* fix isort

* moved support_capsman to update_devices()

* moved support-checks to setup method

* moved setup method to get_hub_details

* implement suggestion for device lists

* fix black formatting

* remove not needed variable wireless_devices

* fix usage of force_dhcp to seperate wireless devs

* fix black fmt
2020-02-16 09:49:13 +01:00
Rami Mosleh
c0eb399d54
Fix librouteros response error handling (#31588) 2020-02-07 14:03:32 +01:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell (#31243)
* Fix typos found by codespell

* Fix typos found by codespell

* codespell: Furture  ==> Future

* Update test_config_flow.py

* Update __init__.py

* Spellcheck: successfull  ==> successful

* Codespell: unsuccesful  ==> unsuccessful

* Codespell: cant  ==> can't

* Codespell: firware ==> firmware

* Codespell: mimick  ==> mimic
2020-01-31 08:33:00 -08:00
Rami Mosleh
9432054066
Rework Mikrotik device scanning following Unifi (#27484)
* rework device scanning, add tests

* update requirements and coverage

* fix description comments

* update tests, fix disabled entity updates

* rework device scanning, add tests

* update requirements and coverage

* fix description comments

* update tests, fix disabled entity updates

* update librouteros to 3.0.0

* fix sorting

* fix sorting 2

* revert to 2.3.0 as 3.0.0 requires code update

* fix requirements

* apply fixes

* fix tests

* update hub.py and fix tests

* fix test_hub_setup_failed

* rebased on dev and update librouteros to 3.0.0

* fixed test_config_flow

* fixed tests

* fix test_config_flow
2020-01-30 10:21:51 -08:00