Commit Graph

61 Commits (2cd44567627c5e7ba44baf28191c76512d856b08)

Author SHA1 Message Date
Joost Lekkerkerker e8d7eb05ae
Delete unused snapshots (#123656)
* Delete unused snapshots

* Delete unused snapshots
2024-08-12 13:28:09 +02:00
Maciej Bieniek 001bb3a04e
Bump `nettigo_air_monitor` to version 3.3.0 (#120901)
* Bump nam library

* Update snaphots (increasing accuracy)

* Update lib and snapshot

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-07-04 21:40:25 +02:00
epenet 3e9d25f81d
Add missing argument type hints to component tests (#119671) 2024-06-14 09:26:46 +02:00
epenet 3d31af3eb4
Move entity_registry_enabled_by_default to decorator [a-p] (#118794) 2024-06-04 16:18:42 +02:00
Maciej Bieniek afc29fdbe7
Add support for the DS18B20 temperature sensor to Nettigo Air Monitor integration (#118601)
Add support for DS18B20 temperature sensor

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-02 20:55:36 +02:00
Maciej Bieniek 649d6ec11a
Bump `nettigo_air_monitor` library to version `3.2.0` (#118600)
* Bump nam to version 3.2.0

* Update test snapshot

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-01 18:10:45 +02:00
Maciej Bieniek 805f634634
Bump `nettigo_air_monitor` to version 3.1.0 (#118227)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-27 12:54:10 +02:00
J. Nick Koston 5a609c34bb
Fix blocking I/O in the event loop when loading timezones (#117721) 2024-05-20 11:06:03 +02:00
Maciej Bieniek 0d09226661
Support reconfigure flow in Nettigo Air Monitor integration (#117318)
* Add reconfigure flow

* Fix input

* Add tests

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-13 19:17:14 +02:00
Maciej Bieniek 5e345b7129
Use snapshot test helper in NAM (#115894)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-04-20 18:43:33 +02:00
Maciej Bieniek 194f3366ce
Use snapshot testing in NAM sensor and diagnostics (#115877)
* Use snapshot testing in NAM diagnostics

* Use snapshot testing in NAM sensor

* Add NAM data fixture

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-04-20 12:34:27 +02:00
Joost Lekkerkerker 5d500cb74b
Use is in enum comparison in config flow tests K-O (#114672) 2024-04-02 11:21:42 -10:00
Joost Lekkerkerker 6bb4e7d62c
Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Sid fe9cc6705c
Add ruff rule PIE804 (#113620)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 12:45:18 -10: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 1722e23df8
Add empty line after module docstring [tests l-p] (#112710) 2024-03-08 14:55:15 +01:00
Maciej Bieniek 57bec29266
Add icon translations to NAM (#110135)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-09 23:28:24 +01:00
Marc Mueller a9147cf3dd
Use builtin TimeoutError [k-n] (#109681) 2024-02-05 12:08:18 +01:00
Jan-Philipp Benecke 9326ea09a5
Update m* tests to use entity & device registry fixtures (#103980) 2023-11-15 10:33:11 +01:00
J. Nick Koston 0eca433004
Update zeroconf discovery to use IPAddress objects to avoid conversions (#100567) 2023-09-19 18:58:46 +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 34041c7564
Add entity name translations to NAM (#90681) 2023-04-03 12:37:01 +02:00
Maciej Bieniek a54e523731
Bump `nettigo-air-monitor` to version 2.1.0 (#88569)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-21 17:41:46 -06:00
epenet 50cbabb2d8
Add type hints to integration tests (part 15) (#88006) 2023-02-15 10:00:49 +01:00
epenet 3abf7ea18a
Add type hints to integration tests (m-p) (#87705) 2023-02-08 07:48:54 -08:00
Maciej Bieniek 6a3619d9fa
Refactor NAM sensor platform (#87048)
* Bump backend library

* Remove AQI_LEVEL_STATE_MAPPING

* Add native_precission

* Update diagnostics fixture

* Use _attr_native_value

* Fix type

* Improve lambda

* Revert native_value property

* native_precision -> suggested_display_precision
2023-02-07 09:14:20 +01:00
Franck Nijhof 5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Michael 104f74054b
Replace the usage of unit constants by enumerations in Tests [m-n] (#85935)
* replace unit conts by enums m-n

* fix mqtt
2023-01-15 15:45:00 +01:00
Franck Nijhof f4a71ea83f
Fix translation keys for NAM sensors (#85245)
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
2023-01-05 23:17:29 +01:00
Franck Nijhof 1f7a7d5cb5
Use enum sensor device class in Nettigo Air Monitor (#83314) 2022-12-05 16:05:03 +01:00
Maciej Bieniek ae2419b569
Add support for PMSx003 sensors in NAM integration (#81289)
* Add support for PMSx003

* Organize the order of tests
2022-10-31 10:22:45 +01:00
Maciej Bieniek ec038835f6
Catch `ApiError` while checking credentials in NAM integration (#81243)
* Catch ApiError while checking credentials

* Update tests

* Suggested change
2022-10-30 20:01:10 +01:00
Maciej Bieniek 19debda059
Bump nettigo-air-monitor to 1.5.0 (#81183)
* Bump NAM library

* Update tests
2022-10-29 14:43:02 +02:00
epenet 00dd27ef1b
Apply hass-relative-import to tests (i-r) (#78732) 2022-09-19 09:46:59 +02:00
Maciej Bieniek bf510fcb4c
Add CAQI sensors to Nettigo Air Monitor integration (#76709)
* Add CAQI sensors

* Add state translation

* Add icon

* Update tests

* Remove unit

* Update test

* Do not use device_class

* Update tests

* Remove unit and device_class
2022-08-28 21:54:00 +02:00
Maciej Bieniek e44b1fa98c
Bump nettigo-air-monitor to 1.4.2 (#76670) 2022-08-13 10:32:58 +02:00
Franck Nijhof 7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum (#74642) 2022-07-07 19:57:36 +03:00
Maciej Bieniek 0b5c0f8249
Bump `nam` backend library (#72771)
* Update config flow

* Fix discovery with auth

* Call check_credentials() on init

* Update tests

* Bump library version

* Cleaning

* Return dataclass instead of tuple

* Fix pylint error
2022-06-07 06:56:11 -10:00
epenet 053c4428a9
Prettify json (component test fixtures) (#68892) 2022-03-30 11:37:17 +02:00
Joshua Roys 9134e5c844
Get discovered zeroconf IPv6 addresses (#65462) 2022-02-11 16:46:17 -06:00
Maciej Bieniek 2ed30ac361
Add diagnostics to NAM (#64743)
* Add diagnostics

* Fix tests
2022-01-23 00:17:32 -08:00
Erik Montnemery b3cda6b681
Attempt to fix flaky nam test (#64613) 2022-01-21 09:44:05 -08:00
Dave T e0c5cbf1e0
Use new enums in nam tests (#62522) 2021-12-21 21:54:58 +01:00
Ville Skyttä 5bf67cac66
Use RegistryEntryDisabler (#60436) 2021-12-15 23:25:40 +02:00
Franck Nijhof 9715601255
Add button device classes to NAM (#60621) 2021-12-01 07:08:17 +01:00
Maciej Bieniek 847b10fa65
Add `button` platform to NAM integration (#60410) 2021-11-29 22:58:04 +01:00
epenet 77dfeb062f
Update ZeroconfServiceInfo in tests (n-t) (#60219)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 10:35:44 -06:00
epenet ba93a384a7
Use ZeroconfServiceInfo in nam (#60044) 2021-11-21 10:25:34 +01:00