Commit Graph
33 Commits
Author SHA1 Message Date
epenetandGitHub a3942e019b Use remove_device helper in tests (2/2) (#116442)
Use remove_device helper in tests (part 2)
2024-04-30 12:50:35 +02:00
9bf87329da Enable Ruff FLY002 rule (#115112)
Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: Jan Bouwhuis <[email protected]>
2024-04-12 09:04:16 +02:00
f617000920 Add device removal capability for Netatmo (#107630)
* Add device removal capability for Netatmo

* Update tests/components/netatmo/test_init.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update tests/components/netatmo/test_init.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update tests/components/netatmo/test_init.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
2024-04-07 15:10:00 +02:00
epenetandGitHub 9204ccfa17 Use is in ConfigEntryState enum comparison in tests (N-Z) (#114926) 2024-04-05 17:37:00 +02:00
6bb4e7d62c Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <[email protected]>
Co-authored-by: Marc Mueller <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
2024-03-26 00:02:16 +01:00
Jan-Philipp BeneckeandGitHub f73f93913f Remove deprecated hass.components from netatmo webhook tests (#113691) 2024-03-18 19:31:13 +01:00
Marc MuellerandGitHub 1722e23df8 Add empty line after module docstring [tests l-p] (#112710) 2024-03-08 14:55:15 +01:00
J. Nick KostonandGitHub a6f4f6eae8 Use eager task creation to add entities to entity platform (#111553) 2024-02-27 09:54:51 -10:00
J. Nick KostonandGitHub c399cab427 Small speed up to checking core state (#107845) 2024-01-18 08:41:32 -10:00
Joost LekkerkerkerandGitHub 9471f81a18 Give name to Netatmo device snapshots (#107938) 2024-01-13 11:09:47 +01:00
Joost LekkerkerkerandGitHub f601104418 Snapshot Netatmo devices (#107935) 2024-01-13 10:59:36 +01:00
Joost LekkerkerkerandGitHub 7bcfcfef5f Improve Netatmo tests (#107902)
* Improve Netatmo tests

* Improve Netatmo tests
2024-01-12 23:27:31 +01:00
706add4a57 Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <[email protected]>
2023-11-27 14:38:59 +01:00
Erik MontnemeryandGitHub 50827405d0 Fix patch of PLATFORMS constant in netatmo (#101038) 2023-09-29 16:30:33 +02:00
Marc MuellerandGitHub 1a77121c02 Fix aiohttp code DeprecationWarnings (#97621) 2023-08-02 20:28:18 +02:00
Ville SkyttäandGitHub 2e59ae9e90 Import util.dt as dt_util in components/[k-o]* (#93760) 2023-05-29 23:02:14 +02:00
J. Nick KostonandGitHub 48485fc2bf Complete persistent notifications migration (#92828)
* Complete migration of persistent notifications

Persistent notifications are no longer stored in
the state machine and no longer fire events

* Complete migration of persistent notifications

Persistent notifications are no longer stored in
the state machine and no longer fire events

* fixes

* fixes

* fixes

* ws test

* update tests

* update tests

* fix more tests

* fix more tests

* more fixes

* fix

* fix person

* fix person

* keep whitelist

* use singleton
2023-05-25 23:09:13 -04:00
epenetandGitHub 50cbabb2d8 Add type hints to integration tests (part 15) (#88006) 2023-02-15 10:00:49 +01:00
epenetandGitHub 3abf7ea18a Add type hints to integration tests (m-p) (#87705) 2023-02-08 07:48:54 -08:00
Franck NijhofandGitHub 5e81d28116 Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Tobias SauerweinandGitHub fa350b984a Clean up superfluous Netatmo API calls (#81095) 2022-10-27 14:42:16 -04:00
3e411935bb Fix Netatmo scope issue with HA cloud (#79437)
Co-authored-by: Paulus Schoutsen <[email protected]>
2022-10-01 21:11:54 -04:00
81abeac83e Netatmo refactor to use pyatmo 7.0.1 (#73482) (#78523)
Co-authored-by: Robert Svensson <[email protected]>
2022-09-25 21:55:58 -04:00
Tobias SauerweinandGitHub 3d1cad9f67 Improve handling of cloud hook registration (#65664)
Signed-off-by: cgtobi <[email protected]>
2022-02-16 16:42:45 +01:00
Joakim SørensenandGitHub 0a2f57e4f8 Move netatmo dataclass registrations (#65052) 2022-01-28 10:51:32 +01:00
e492cb5156 Import webhook in netatmo (#64105)
* Import webhook in netatmo

* Adjust tests

Co-authored-by: epenet <[email protected]>
2022-01-14 13:01:14 +01:00
Tobias SauerweinandGitHub 653fb5b637 Update Netatmo climate platform (#59974) 2021-12-02 10:31:54 +01:00
Tobias SauerweinandGitHub 3970a50553 Add reauth for Netatmo when token or token scope is invalid (#57487) 2021-10-26 16:09:10 +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
ceec871340 Make Netatmo use async pyatmo (#49717)
* Split initialization from data retrival

* Await class initialization

* Async camera

* More async

* Remove stale code

* Clean up

* Update tests

* Fix test

* Improve error handling

* Bump pyatmo version to 5.0.0

* Add tests

* Add cloudhook test

* Increase coverage

* Add test with no camera devices

* Add test for ApiError

* Add test for timeout

* Clean up

* Catch pyatmo ApiError

* Fix PublicData

* Fix media source bug

* Increase coverage for light

* Test webhook with delayed start

* Increase coverage

* Clean up leftover data classes

* Make nonprivate

* Review comments

* Clean up stale code

* Increase cov

* Clean up code

* Code clean up

* Revert delay

* Update homeassistant/components/netatmo/climate.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Update homeassistant/components/netatmo/sensor.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Address comment

* Raise cov

Co-authored-by: Martin Hjelmare <[email protected]>
2021-05-20 14:59:19 +02:00
Tobias SauerweinandGitHub 1ba54ac2bb Refactor Netatmo tests (#48277) 2021-03-26 11:13:27 +01:00
ec1334099e Add tests for Netatmo data handler (#46373)
* Add tests for Netatmo data handler

* Clean up coveragerc

* Move block to fixture

* Minor update

* Remove tests of implementation details for data handler

* Update homeassistant/components/netatmo/data_handler.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Update homeassistant/components/netatmo/data_handler.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Import callback

Co-authored-by: Martin Hjelmare <[email protected]>
2021-03-25 19:07:45 +01:00
9656f260a4 Add tests for Netatmo (#46372)
Co-authored-by: Erik Montnemery <[email protected]>
Co-authored-by: Martin Hjelmare <[email protected]>
2021-03-23 14:28:35 +01:00