Commit Graph
23 Commits
Author SHA1 Message Date
00ec7f11f0 Enable Ruff rule PT007 (#113764)
Co-authored-by: Franck Nijhof <[email protected]>
2024-03-19 09:01:07 +01:00
Marc MuellerandGitHub 38adfbf1a3 Add empty line after module docstring [tests a-e] (#112708) 2024-03-08 08:50:25 -05:00
Franck NijhofandGitHub 04e0e2bd75 Update a* tests to use device & entity registry fixtures (#103711) 2023-11-09 20:46:20 +01:00
Jan-Philipp BeneckeandGitHub 5d46e22591 Move airly coordinator to its own file (#99545) 2023-09-11 21:52:02 -05:00
Erik MontnemeryandGitHub 5617a738c0 Use freezegun in airly tests (#99028) 2023-08-25 09:04:51 -05:00
Franck NijhofandGitHub ce16d8eeac Rename Particulate matter sensors to PM (#91384) 2023-04-14 09:43:15 +02:00
Maciej BieniekandGitHub cacd6708f0 Use the default entity names in Airly (#90693) 2023-04-03 10:50:24 +02:00
epenetandGitHub 07a1a0efa9 Add type hints to integration tests (part 1) (#87777) 2023-02-09 16:09:13 +01:00
Franck NijhofandGitHub 330e1c6cbb Clean up unnecessary registry mocks from integration tests (#87763) 2023-02-09 10:43:45 +01:00
epenetandGitHub 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 MontnemeryandGitHub bcc1aa03b4 Move sensor rounding to frontend (#87330)
* Move sensor rounding to frontend

* Update integrations

* Add comment
2023-02-04 14:54:36 -05:00
epenetandGitHub c5a56dab42 Apply hass-relative-import to tests (a-c) (#78728) 2022-09-19 09:48:25 +02:00
Kenneth J. MillerandGitHub 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
eda806ca12 spelling: components/airly (#64266)
Signed-off-by: Josh Soref <[email protected]>

Co-authored-by: Josh Soref <[email protected]>
2022-01-17 19:22:11 -08:00
Paulus SchoutsenandGitHub 31153ac155 Move fixtures part 1 (#58902) 2021-11-01 20:47:05 -07:00
3d556f14a5 Remove air_quality platform from Airly integration (#52225)
Co-authored-by: Martin Hjelmare <[email protected]>
2021-06-28 10:15:56 +02:00
Ville SkyttäandGitHub 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äandGitHub 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 BieniekandGitHub 6df0190aeb Improve type annotations for Airly integration (#49898) 2021-05-07 09:47:52 -05:00
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 <[email protected]>

* 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 <[email protected]>
2021-04-27 23:34:53 +02:00
Maciej BieniekandGitHub 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
Maciej BieniekandGitHub 94e1f8e631 Refactor Airly tests (#44315) 2020-12-17 16:44:46 +01:00
Maciej BieniekandGitHub ad0560ef37 Improve tests for Airly integration (#38357)
* Add tests

* More tests

* Add PARALLEL_UPDATES

* Change Quality scale to platinum

* Change PARALLEL_UPDATES value
2020-07-30 08:41:18 -10:00