ollo69
b56dd3f808
Don't create AsusWRT loadavg sensors when unavailable ( #106790 )
2024-02-05 09:03:43 +01:00
ollo69
ee25cb2616
Add AsusWrt temperature sensors provided by http protocol ( #105692 )
2023-12-27 21:20:03 +01:00
ollo69
b29e9e2df0
Fix AsusWrt invalid data type with tuple type ( #105247 )
2023-12-08 09:01:22 +01:00
ollo69
b4797e283f
Add HTTP protocol support to AsusWRT ( #95720 )
2023-11-16 13:45:18 +01:00
ollo69
1e375352bb
Use decorator for AsusWrt api calls ( #103690 )
2023-11-13 13:55:31 +01:00
Jan-Philipp Benecke
9ab1cb83d8
Update a-c* tests to use entity & device registry fixtures ( #103793 )
...
* Update a-c* tests to use entity & device registry fixtures
* Revert some changes
* Revert formatting
* retrigger CI
2023-11-12 13:45:30 -05:00
ollo69
143e114528
Improve AsusWRT integration tests ( #102810 )
2023-11-09 09:18:32 +01:00
Erik Montnemery
f77387bd0f
Adjust asuswrt tests which create devices ( #98182 )
2023-08-10 18:21:46 +02:00
ollo69
345df715d6
Change AsusWRT entities unique id ( #97066 )
...
Migrate AsusWRT entities unique id
2023-07-24 19:53:58 +02:00
ollo69
8108a0f947
Add Bridge module to AsusWRT ( #84152 )
...
* Add Bridge module to AsusWRT
* Requested changes
* Requested changes
* Requested changes
* Add check on router attributes value
2023-07-01 13:55:28 +02:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
07a1a0efa9
Add type hints to integration tests (part 1) ( #87777 )
2023-02-09 16:09:13 +01:00
epenet
2545694d41
Add type hints to integration tests (a) ( #87684 )
...
* Add type hints to accuweather tests
* Adjust a** components
* Adjust aiohttp_client
* ClientSessionGenerator/WebSocketGenerator
2023-02-08 12:16:23 +01:00
ollo69
ade0d6fcae
Use suggested_display_precision for AsusWrt sensors ( #87396 )
...
* Use native_precision for AsusWrt sensors
* Use suggested_display_precision
2023-02-06 11:05:10 +01:00
ollo69
5789790d32
Review AsusWRT sensors tests ( #71307 )
...
* Review AsusWRT sensors tests
* Fix grammar
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-02 11:22:16 +01:00
epenet
8a20a90324
Use SchemaOptionsFlowHandler in asuswrt ( #82806 )
2022-11-28 09:56:08 +01:00
epenet
7bc2712142
Adjust root-import in tests ( #78761 )
...
* Adjust root-import in tests
* Adjust diagnostics
* Adjust button
* Adjust select
* Adjust device_tracker
* Adjust camera
* Adjust humidifier
* Adjust media_source
* Adjust update
* Adjust siren
* Adjust number
* Adjust alarm_control_panel
* Adjust notify
* Adjust sensor
* Adjust switch
* Revert anthemav
* Don't adjust demo humidifier
2022-09-19 15:22:23 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
ollo69
ee8eac10c9
Address late review of AsusWRT unique id PR ( #71281 )
2022-05-04 11:39:55 +02:00
ollo69
93153b3790
Add UniqueID to AsusWRT config entry ( #70478 )
2022-05-03 13:56:57 -07:00
ollo69
f6e5e1b167
Simplify AsusWRT config flow ( #69800 )
2022-04-21 08:23:40 -07:00
ollo69
f4d4b52204
Improve AsusWrt test coverage ( #70215 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-18 09:20:40 -10:00
ollo69
13699baa4d
Remove deprecated yaml config from AsusWRT ( #65904 )
2022-02-06 17:03:04 +02:00
Paulus Schoutsen
2b4bb49eb7
Make device tracker entities work better ( #63328 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-04 23:16:43 -08:00
Chen-IL
ac26c2378b
Add temperature sensors for Asuswrt ( #58303 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-03 11:27:17 -08:00
ollo69
c6efdedd3c
Add AsusWRT load average sensors ( #52230 )
2021-06-28 22:33:15 +02:00
ollo69
e6e39a67f4
AsusWRT code improvements for sensors and related tests ( #51822 )
...
* Sensors implementation and tests improvements
* Remove check for unexpected condition
2021-06-27 15:09:03 -04:00
ollo69
daff62f42d
Add AsusWRT model and firmware information for device ( #51102 )
2021-05-26 09:46:06 -07:00
ollo69
d5a9419fb7
Fix AsusWRT sensor test ( #50956 )
...
* Fix AsusWRT sensor test
* Revert use of utcnow
* Add MockDevice class
* Proper initialize static member
* Added mock_device fixture
2021-05-26 09:19:30 +02:00
Erik Montnemery
78b21b1ad1
Update tests a-b to use async_get() instead of async_get_registry() ( #47651 )
2021-03-09 14:24:34 +01:00
ollo69
32476a3fed
Fix AsusWRT wrong api call ( #47522 )
2021-03-08 10:34:12 -08:00
ollo69
292f4262aa
Move AsusWrt sensors update logic in router module ( #46606 )
2021-03-05 23:40:04 +01:00
ollo69
f38b06ed6d
Add Asuswrt Config Flow and Scanner Entities ( #46468 )
...
* Add Asuswrt config flow (#43948 )
* Add AsusWrt Scanner Entity (#44759 )
* Add Scanner Entity
- device tracker entity changed from "DeviceScanner" to "ScannerEntity"
- sensors recoded to use "router" class
- config entry review to allow multiple entity (for future use)
* Force checks
* Removed new option and change sensors
* Update test_sensor.py
* Requested changes
* Removed router unique-id
* Update last_activity attr only when available
* Add Options for AsusWRT Scanner Entity (#44808 )
* Add Asuswrt config flow (#43948 )
* Add AsusWrt Scanner Entity (#44759 )
* Add Scanner Entity
- device tracker entity changed from "DeviceScanner" to "ScannerEntity"
- sensors recoded to use "router" class
- config entry review to allow multiple entity (for future use)
* Force checks
* Removed new option and change sensors
* Update test_sensor.py
* Requested changes
* Removed router unique-id
* Update last_activity attr only when available
* Add Options for Scanner Entity
* Fix isort
* Removed "Track New" option
* Add Options for Scanner Entity
* Fix isort
* Removed "Track New" option
* Add test for all the options in the config flow
2021-02-13 19:17:06 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
JJdeVries
8f18af9e80
Decrease asuswrt connects per sensor ( #43383 )
...
* asuswrt: Decrease number of connects per sensor
* Changed implementation to DataUpdateCoordinator
* review changes
* update aioasuswrt dependency
* Apply suggestions from code review
Add explicit return None and fix type hint
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-11-24 04:50:57 +01:00
J. Nick Koston
89a9634d35
Use eventloop for scheduling ( #37184 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-06-29 09:39:24 -07:00
Paulus Schoutsen
76f392476b
Use a future for mock coro ( #34989 )
2020-04-30 16:31:00 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Aidan Timson
e47b548192
Add AsusWRT Devices Connected Sensor ( #34204 )
...
* Add Devices Connected
* Remove attributes
* Add sensors to test
* Improve sensor test
* Cleanup
* Apply suggestions from code review
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Import device from aioasuswrt
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-15 17:42:01 +02:00
springstan
46bbe816f6
Remove None from dict.get(key, None) ( #33794 )
2020-04-07 21:06:05 +02:00
ollo69
62835f0536
Fix asuswrt network failure startup ( #33485 )
...
* Fix network failure startup
Fix for issue ##33284 - Asuswrt component fail at startup after power failure
* Removed comment
* Removed bare except
* is_connected moved out try-catch
* Removed pointless-string-statement
* Raise PlatformNotReady on "not is_connected"
* Removed unnecessary check
* Revert "Removed unnecessary check"
This reverts commit a2ccddab2c4b1ba441f1d7482d802d9774527a26.
* Implemented custom retry mechanism
* Fix new line missing
* Fix formatting
* Fix indent
* Reviewed check
* Recoded based on tibber implementation
* Formatting review
* Changes requested
* Fix tests for setup retry
* Updated missing test
* Fixed check on Tests
* Return false if not exception
* Format correction
2020-04-03 15:02:48 +02:00
springstan
0cf9268ca8
Fix invalid directory for dnsmasq files in asuswrt ( #33503 )
2020-04-01 11:04:44 -07:00
Patrick Kishino
f32411e394
Add asuswrt interface and dnsmasq location configuration ( #29834 )
...
* Added interface and dnsmasq location configuration
* Updated aioasuswrt requirement to latest 1.2.1 release
* Updated to working aioasus library and fixed correct conf formatting
2020-02-21 17:01:57 +01:00
Bas Nijholt
96961b9bcc
Sort imports according to PEP8 for components starting with "A" ( #29761 )
2019-12-09 13:57:24 +01:00
Paulus Schoutsen
dad11f8208
Fix tests & lint
2019-12-04 22:47:40 -08:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Penny Wood
f195ecca4b
Consolidate all platforms that have tests ( #22109 )
...
* Moved climate components with tests into platform dirs.
* Updated tests from climate component.
* Moved binary_sensor components with tests into platform dirs.
* Updated tests from binary_sensor component.
* Moved calendar components with tests into platform dirs.
* Updated tests from calendar component.
* Moved camera components with tests into platform dirs.
* Updated tests from camera component.
* Moved cover components with tests into platform dirs.
* Updated tests from cover component.
* Moved device_tracker components with tests into platform dirs.
* Updated tests from device_tracker component.
* Moved fan components with tests into platform dirs.
* Updated tests from fan component.
* Moved geo_location components with tests into platform dirs.
* Updated tests from geo_location component.
* Moved image_processing components with tests into platform dirs.
* Updated tests from image_processing component.
* Moved light components with tests into platform dirs.
* Updated tests from light component.
* Moved lock components with tests into platform dirs.
* Moved media_player components with tests into platform dirs.
* Updated tests from media_player component.
* Moved scene components with tests into platform dirs.
* Moved sensor components with tests into platform dirs.
* Updated tests from sensor component.
* Moved switch components with tests into platform dirs.
* Updated tests from sensor component.
* Moved vacuum components with tests into platform dirs.
* Updated tests from vacuum component.
* Moved weather components with tests into platform dirs.
* Fixed __init__.py files
* Fixes for stuff moved as part of this branch.
* Fix stuff needed to merge with balloob's branch.
* Formatting issues.
* Missing __init__.py files.
* Fix-ups
* Fixup
* Regenerated requirements.
* Linting errors fixed.
* Fixed more broken tests.
* Missing init files.
* Fix broken tests.
* More broken tests
* There seems to be a thread race condition.
I suspect the logger stuff is running in another thread, which means waiting until the aio loop is done is missing the log messages.
Used sleep instead because that allows the logger thread to run. I think the api_streams sensor might not be thread safe.
* Disabled tests, will remove sensor in #22147
* Updated coverage and codeowners.
2019-03-18 23:07:39 -07:00