Commit Graph
24 Commits
Author SHA1 Message Date
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
SidandGitHub 82a60fe8ad Enable Ruff RSE (#113695) 2024-03-18 00:40:38 +01:00
Marc MuellerandGitHub 1722e23df8 Add empty line after module docstring [tests l-p] (#112710) 2024-03-08 14:55:15 +01:00
Joost LekkerkerkerandGitHub 902619a4db Add snapshot tests to Netatmo platforms (#107932)
* Add snapshot tests to Netatmo platforms

* Add snapshot tests to Netatmo platforms
2024-01-13 10:18:21 +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
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 6f38bc274a Fix netatmo with python 3.11 (#88093) 2023-02-15 14:02:33 +01:00
epenetandGitHub 50cbabb2d8 Add type hints to integration tests (part 15) (#88006) 2023-02-15 10:00:49 +01:00
Tobias SauerweinandGitHub 927b8b2eef Bump pyatmo to 7.3.0 (#81290)
* Bump pyatmo to 7.3.0

* Update test fixture data and tests
2022-10-31 11:09:15 +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
Paulus SchoutsenandGitHub 56e5774e26 Disable force update Netatmo (#78913) 2022-09-21 22:31:14 -04:00
Tobias SauerweinandGitHub 49854b809c Netatmo entity renaming and clean up (#75337) 2022-07-27 14:17:38 +02: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 1747578be5 Fix camera tests (#57020) 2021-10-03 16:55:07 -07:00
Tobias SauerweinandGitHub 26d310fc8a Split Netatmo camera persons by home (#55598)
* Split persons by home
* Bump pyatmo to 6.0.0
* Check is person exists
* Extract method for fetching person ids
2021-09-22 14:32:30 +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
4ee4d674d8 Add tests for Netatmo camera (#46380)
* Add test for Netatmo camera

* Improve docstrings

* Remove light tests

* Remove freezegun from tests

* Update camera tests

* Remove freezegun dependency

* Update tests/components/netatmo/test_camera.py

Co-authored-by: Erik Montnemery <[email protected]>

* Update tests/components/netatmo/test_camera.py

Co-authored-by: Erik Montnemery <[email protected]>

* Deduplication of the fake webhook payload

* Mock pyatmo instead of checking the logs

* Clean up

* Further deduplication

* Assert function arguments

* Rename mocked functions

* Update .coveragerc

Co-authored-by: Erik Montnemery <[email protected]>
2021-03-19 12:19:57 +01:00