Joost Lekkerkerker
b9281327c4
Use FlowResultType enum in config flow tests A-M ( #114681 )
2024-04-03 09:21:17 +02:00
Joost Lekkerkerker
9b41e3d124
Use is in enum comparison in config flow tests A-E ( #114669 )
2024-04-02 11:22:05 -10:00
Erik Montnemery
426f73b1f4
Add State.last_reported ( #113511 )
...
* Add State.last_reported
* Update tests
* Update test snapshots
* Call state_reported listeners when firing state_changed event
* Add tests
2024-03-20 21:05:07 +01:00
Sid
00ec7f11f0
Enable Ruff rule PT007 ( #113764 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-03-19 09:01:07 +01:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
38adfbf1a3
Add empty line after module docstring [tests a-e] ( #112708 )
2024-03-08 08:50:25 -05:00
J. Nick Koston
f3a9756f81
Avoid waiting for integration platforms in the parent integration ( #112467 )
2024-03-05 21:16:42 -10:00
Franck Nijhof
e0a9dcd996
Add label registry ( #110821 )
2024-02-19 11:59:08 +01:00
Joost Lekkerkerker
21009bef02
Add icon translations to Airly ( #108404 )
...
* Add icon translations to Airly
* Fix test
* Fix tests
2024-01-22 21:17:04 +01:00
Joost Lekkerkerker
e47ed16980
Use snapshot testing in Airly sensor ( #108608 )
...
* Use snapshot testing in Airly sensor
* Apply suggestions from code review
Co-authored-by: Robert Resch <robert@resch.dev>
* Fix tests
---------
Co-authored-by: Robert Resch <robert@resch.dev>
2024-01-22 20:59:24 +01:00
Erik Montnemery
6908497c3d
Add minor version to config entries ( #105479 )
2023-12-12 08:44:35 +01:00
Franck Nijhof
04e0e2bd75
Update a* tests to use device & entity registry fixtures ( #103711 )
2023-11-09 20:46:20 +01:00
Jan-Philipp Benecke
5d46e22591
Move airly coordinator to its own file ( #99545 )
2023-09-11 21:52:02 -05:00
Erik Montnemery
5617a738c0
Use freezegun in airly tests ( #99028 )
2023-08-25 09:04:51 -05:00
Joost Lekkerkerker
5ad97827cf
Use snapshot assertion for Airly diagnostics ( #98726 )
2023-08-22 12:17:43 +02:00
Franck Nijhof
ce16d8eeac
Rename Particulate matter sensors to PM ( #91384 )
2023-04-14 09:43:15 +02:00
epenet
7b3a932cd9
Remove incorrect constant usage in test ( #91198 )
2023-04-11 10:00:17 +02:00
Maciej Bieniek
cacd6708f0
Use the default entity names in Airly ( #90693 )
2023-04-03 10:50:24 +02:00
epenet
07a1a0efa9
Add type hints to integration tests (part 1) ( #87777 )
2023-02-09 16:09:13 +01:00
Franck Nijhof
330e1c6cbb
Clean up unnecessary registry mocks from integration tests ( #87763 )
2023-02-09 10:43:45 +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
Erik Montnemery
bcc1aa03b4
Move sensor rounding to frontend ( #87330 )
...
* Move sensor rounding to frontend
* Update integrations
* Add comment
2023-02-04 14:54:36 -05:00
Maciej Bieniek
5f57648578
Use more human-readable sensor names in Airly ( #86893 )
...
* Use more human-readable sensor names
* Use abbreviations for long names
2023-01-30 08:29:06 -05:00
Michael
2850583085
Replace the usage of unit constants by enumerations in Tests [a-e] ( #85932 )
2023-01-15 14:44:01 +01:00
Maciej Bieniek
6baa905448
Abort config flow if Airly measuring station does not exist ( #85652 )
...
* Abort if there is no sensor in the area
* Add test
* Increase test coverage
2023-01-13 14:35:52 +01:00
Maciej Bieniek
8ff12eacd4
Do not use AQI device class for CAQI sensor in Airly integration ( #79402 )
2022-10-01 16:33:11 +02:00
Kenneth J. Miller
3b653de3fd
Fix Airly CO sensor unit ( #78649 )
2022-09-19 15:35:13 +02:00
epenet
c5a56dab42
Apply hass-relative-import to tests (a-c) ( #78728 )
2022-09-19 09:48:25 +02:00
Kenneth J. Miller
84cd0da26b
Add Airly gas sensors ( #77908 )
...
* Add support for gases queryable via Airly API:
CO, NO₂, O₃, SO₂
* Add tests for above sensors and update test fixtures
2022-09-16 15:19:30 -06:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
Maciej Bieniek
74e9c050af
Add `diagnostics` platform for Airly integration ( #69874 )
...
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2022-04-13 19:22:37 +02:00
epenet
053c4428a9
Prettify json (component test fixtures) ( #68892 )
2022-03-30 11:37:17 +02:00
Josh Soref
eda806ca12
spelling: components/airly ( #64266 )
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-01-17 19:22:11 -08:00
Dave T
4f7182a41a
Use DeviceClass Enums in airly tests ( #61989 )
2021-12-16 20:59:25 +01:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
Ville Skyttä
a598d9f353
Use HTTPStatus instead of HTTP_ consts and magic values in components/a* ( #57988 )
2021-10-22 14:21:34 +02:00
Maciej Bieniek
bd550c4559
Use AQI, PM1, PM25, PM10 device classes in Airly ( #54742 )
2021-08-18 02:40:06 +02:00
Maciej Bieniek
3d556f14a5
Remove `air_quality` platform from Airly integration ( #52225 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-06-28 10:15:56 +02:00
Maciej Bieniek
c9178e58b5
Add support for state class for Airly sensor ( #51285 )
2021-05-31 16:00:58 +02:00
Ville Skyttä
19d25cd901
Change config entry state to an enum ( #49654 )
...
* Change config entry state to an enum
* Allow but deprecate EntryState str equality comparison
* Test fixes
* Rename to ConfigEntryState
* Remove str comparability backcompat
* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
Ville Skyttä
b89c53f759
Type hint device registry identifiers as set of str 2-tuples ( #50355 )
...
* Type hint device registry identifiers as set of str 2-tuples
* Fix airly test
* Really fix airly test, add another migration test
2021-05-10 12:13:45 +02:00
Maciej Bieniek
6df0190aeb
Improve type annotations for Airly integration ( #49898 )
2021-05-07 09:47:52 -05:00
Maciej Bieniek
513685bbea
Add dynamic update interval to Airly integration ( #47505 )
...
* Add dynamic update interval
* Update tests
* Improve tests
* Improve comments
* Add MAX_UPDATE_INTERVAL
* Suggested change
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use async_fire_time_changed to test update interval
* Fix test_update_interval
* Patch dt_util in airly integration
* Cleaning
* Use total_seconds instead of seconds
* Fix update interval test
* Refactor update interval test
* Don't create new context manager
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-27 23:34:53 +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
Maciej Bieniek
66027bcef5
Bump airly library to version 1.1.0 ( #47163 )
2021-02-28 12:53:13 +01:00
Maciej Bieniek
2e50c1be8e
Add nearest method to get data for Airly integration ( #44288 )
...
* Add nearest method
* Add tests
* Move urls to consts
* Simplify config flow
* Fix tests
* Update tests
* Use in instead get
* Fix AirlyError message in tests
* Fix manual update entity tests
* Clean up tests
* Fix after rebase
* Increase test coverage
* Format the code
* Fix after rebase
2021-01-04 23:14:45 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Maciej Bieniek
97894bd718
Refactor Airly config flow ( #44330 )
2020-12-17 19:34:40 +01:00
Maciej Bieniek
94e1f8e631
Refactor Airly tests ( #44315 )
2020-12-17 16:44:46 +01:00