Franck Nijhof
04e0e2bd75
Update a* tests to use device & entity registry fixtures ( #103711 )
2023-11-09 20:46:20 +01:00
Joost Lekkerkerker
973928ffe9
Use snapshot assertion for Airvisual diagnostics ( #98728 )
2023-08-21 11:17:43 +02:00
epenet
959c2205d5
Add missing mock in airvisual config flow tests ( #89359 )
2023-03-08 10:18:07 -05:00
J. Nick Koston
b5223e1196
Restore previous behavior of only waiting for new tasks at shutdown ( #88740 )
...
* Restore previous behavior of only waiting for new tasks at shutdown
* cleanup
* do a swap instead
* await canceled tasks
* await canceled tasks
* fix
* not needed since we no longer clear
* log it
* reword
* wait for airvisual
* tests
2023-02-26 22:36:18 -05:00
Franck Nijhof
d3ed8de232
Update Ruff to v0.0.247 ( #88210 )
...
* Update Ruff to v0.0.247
* Fix new found violations
2023-02-15 16:46:03 -05: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
Franck Nijhof
ef800335fb
Enable Ruff PT022 ( #86792 )
...
* Enable Ruff PT022
* Adjust found cases
2023-01-27 13:57:06 +01:00
Erik Montnemery
f17a829bd8
Only wait for import flows to initialize at setup ( #86106 )
...
* Only wait for import flows to initialize at setup
* Update hassio tests
* Update hassio tests
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-18 10:44:18 +01:00
Aaron Bach
6e9d3bf8e9
Renovate Airvisual tests ( #84892 )
...
* Renovate AirVisual tests
* Cleanup
* Package scope
* Update tests/components/airvisual/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-04 13:05:37 -07:00
Aaron Bach
34dc47ad10
Ensure AirVisual Pro migration includes device and entity customizations ( #84798 )
...
* Ensure AirVisual Pro migration includes device and entity customizations
* Update homeassistant/components/airvisual/__init__.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Code review
* Fix tests
* Fix tests FOR REAL
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-30 14:47:41 -07:00
Aaron Bach
0ccac69ce1
Remove `airvisual_pro` code from `airvisual` ( #84254 )
2022-12-19 12:32:33 -07:00
Aaron Bach
09ae02fd56
Migrate AirVisual Pro devices to the `airvisual_pro` domain ( #83882 )
...
* Migration AirVisual Pro devices to the `airvisual_pro` domain
* Fix tests
* Remove airvisual_pro dependency
* Add repairs item
* Only fire repairs issue if automations exist
* Fix tests
2022-12-19 10:48:36 -07:00
Aaron Bach
5884f50a82
Bump pyairvisual to 2022.11.1 ( #81556 )
2022-11-05 12:58:47 -05:00
Aaron Bach
1cf801afbc
Remove unnecessary session scoping to several test fixtures ( #80500 )
...
Co-authored-by: Joakim Plate <elupus@ecce.se>
2022-10-18 18:06:23 +02:00
Aaron Bach
b41cd57c33
Use `entry.as_dict()` in AirVisual diagnostics ( #80109 )
2022-10-11 09:26:57 -06:00
Aaron Bach
08d6487997
Handle (and better log) more AirVisual cloud API errors ( #75332 )
2022-07-16 14:04:44 -06:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
epenet
053c4428a9
Prettify json (component test fixtures) ( #68892 )
2022-03-30 11:37:17 +02:00
Aaron Bach
02fe7fe897
Revert "Don't import from integration `.const` ( #64608 )" ( #64793 )
2022-01-23 23:10:48 +01:00
Aaron Bach
ccef4a7f9a
Clean up AirVisual config flow tests ( #64714 )
2022-01-23 10:19:52 +01:00
Aaron Bach
d634a08361
Don't import from integration `.const` ( #64608 )
2022-01-20 23:25:08 -08:00
Paulus Schoutsen
520ba0a82e
Introduce new redact helper ( #64579 )
2022-01-20 23:02:47 +01:00
Aaron Bach
c9d7917491
Fix incorrect docstring in AirVisual test ( #64496 )
2022-01-19 17:36:10 -10:00
Aaron Bach
05b8da11a3
Add diagnostics for the AirVisual integration ( #64479 )
...
* Add diagnostics for AirVisual config entries
* Tests
* More
* Tests
* Code review
* Fix tests
2022-01-19 15:28:18 -07:00
Aaron Bach
4d72e41a3e
Perform some more AirVisual test cleanup ( #64470 )
...
* Perform some more AirVisual test cleanup
* Smarter startup patch
* Simplify
2022-01-19 14:32:52 -07:00
Aaron Bach
573e17472b
Clean up AirVisual tests ( #64402 )
...
* Simplify AirVisual tests
* First fixture
* More
* Fixture
* More
2022-01-19 11:52:24 -07:00
Josh Soref
54128b5765
spelling: components/airvisual ( #64265 )
...
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-01-17 15:27:28 +01:00
Aaron Bach
ce3f918c2c
Fix bug in AirVisual re-auth ( #59685 )
2021-11-15 14:30:26 -08:00
Aaron Bach
b72f1553ea
Use current config entry standards for AirVisual ( #57132 )
2021-10-11 09:17:43 -06:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Aaron Bach
3bdf962838
Add ability to configure AirVisual with city/state/country in UI ( #44116 )
2021-02-01 11:38:03 -10:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Aaron Bach
3707b72a37
Deprecate YAML config for AirVisual (0.119 removal) ( #42581 )
2020-11-09 13:41:04 +01:00
J. Nick Koston
6822190772
Fix unmocked https in the test suite ( #42316 )
2020-10-25 07:16:23 -05:00
Aaron Bach
099de37ee5
Fix re-authentication in AirVisual ( #41801 )
2020-10-15 09:30:39 +02:00
Davey Chu
4b225a87c5
Use references in airvisual strings.json ( #41005 )
2020-10-01 13:49:16 -06:00
Aaron Bach
f82ca44aac
Bump pyairvisual to 5.0.2 ( #40554 )
...
* Bump pyairvisual to 5.0.2
* Fix tests
2020-09-24 15:31:47 -06:00
Aaron Bach
0e11c10468
Prompt user to reauthenticate AirVisual when API key expires ( #38341 )
...
* Prompt user to reauthenticate AirVisual when API key expires
* Don't version bump
* Cleanup
* Linting
2020-09-09 16:41:07 -06:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Paulus Schoutsen
276f3afb00
Do async_setup_platform in background ( #36244 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-31 22:18:30 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Aaron Bach
86d3321d59
Store integration type in AirVisual config entry ( #34621 )
2020-04-24 10:11:17 -07:00
Aaron Bach
4d292c2723
Add support for AirVisual Node/Pro units ( #32815 )
...
* Add support for AirVisual Node Pro units
* Fixed tests
* Updated dependencies
* Guard looks cleaner
* Limit options update to geography-based entries
* Docstring
* Use proper precision in display_temp
* Add availability for AirVisualNodeProSensor
* Updated translations
* Samba stuff in play
* Wrap up Samba
* Fix tests
* Remove unnecessary updates
* Normalize labels
* Bump requirements
* Don't include configuration.yaml support for this new functionality
* Fix tests
* Code review
* Code review
* Update coveragerc
* Code review
2020-04-23 01:41:14 +02:00
Aaron Bach
0e2fa7700d
Allow more than one AirVisual config entry with the same API k… ( #33072 )
...
* Allow more than one AirVisual config entry with the same API key
* Add tests
* Correctly pop geography
* Code review
* Code review
2020-03-24 11:39:38 -07:00
Aaron Bach
21cff003f8
Add options flow for AirVisual ( #32634 )
...
* Add options flow for AirVisual
* Code review
Co-Authored-By: Robert Svensson <Kane610@users.noreply.github.com>
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2020-03-10 14:16:25 -06:00
Aaron Bach
f4561891ae
Ensure AirVisual import config flow checks API key correctness ( #32624 )
...
* Add small improvements to AirVisual config flow tests
* Code review comments
* Code review comments
2020-03-09 21:39:42 -06:00
Aaron Bach
e9a7b66df6
Add config entry for AirVisual ( #32072 )
...
* Add config entry for AirVisual
* Update coverage
* Catch invalid API key from config schema
* Rename geographies to stations
* Revert "Rename geographies to stations"
This reverts commit 5477f89c24cb3f58965351985b1021fc5fc794a5.
* Update strings
* Update CONNECTION_CLASS
* Remove options (subsequent PR)
* Handle import step separately
* Code review comments and simplification
* Move default geography logic to config flow
* Register domain in config flow init
* Add tests
* Update strings
* Bump requirements
* Update homeassistant/components/airvisual/config_flow.py
* Update homeassistant/components/airvisual/config_flow.py
* Make schemas stricter
* Linting
* Linting
* Code review comments
* Put config flow unique ID logic into a method
* Fix tests
* Streamline
* Linting
* show_on_map in options with default value
* Code review comments
* Default options
* Update tests
* Test update
* Move config entry into data object (in prep for options flow)
* Empty commit to re-trigger build
2020-02-28 20:14:17 -07:00