Commit Graph

73 Commits

Author SHA1 Message Date
Tobias Sauerwein
4fbbb7ba6d Bump pyatmo to 7.3.0 (#81290)
* Bump pyatmo to 7.3.0

* Update test fixture data and tests
2022-10-31 09:54:03 -04:00
Tobias Sauerwein
cbd5e919cb Clean up superfluous Netatmo API calls (#81095) 2022-10-27 17:30:20 -04:00
Tobias Sauerwein
aa58d7fbd6 Fix Netatmo device trigger (#80047) 2022-10-10 22:04:41 +02:00
Tobias Sauerwein
3e411935bb Fix Netatmo scope issue with HA cloud (#79437)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-10-01 21:11:54 -04:00
Tobias Sauerwein
81abeac83e Netatmo refactor to use pyatmo 7.0.1 (#73482) (#78523)
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2022-09-25 21:55:58 -04:00
Paulus Schoutsen
56e5774e26 Disable force update Netatmo (#78913) 2022-09-21 22:31:14 -04:00
epenet
0d696b84b2 Cleanup root component imports in tests (#78893) 2022-09-21 06:57:41 -10:00
epenet
e6970cb62f Adjust root-import in netatmo tests (#78771) 2022-09-19 15:42:59 +02:00
epenet
7bc2712142 Adjust root-import in tests (#78761)
* Adjust root-import in tests

* Adjust diagnostics

* Adjust button

* Adjust select

* Adjust device_tracker

* Adjust camera

* Adjust humidifier

* Adjust media_source

* Adjust update

* Adjust siren

* Adjust number

* Adjust alarm_control_panel

* Adjust notify

* Adjust sensor

* Adjust switch

* Revert anthemav

* Don't adjust demo humidifier
2022-09-19 15:22:23 +02:00
Tobias Sauerwein
49854b809c Netatmo entity renaming and clean up (#75337) 2022-07-27 14:17:38 +02:00
Franck Nijhof
7cd68381f1 Search/replace RESULT_TYPE_* by FlowResultType enum (#74642) 2022-07-07 19:57:36 +03:00
Erik Montnemery
47d0cc9b09 Update integrations to pass target player when resolving media (#72597) 2022-05-27 09:05:06 -07:00
epenet
073833fcec Use climate enums in netatmo (#70724) 2022-04-26 09:18:09 +02:00
Erik Montnemery
5e50a8abd5 Mark device triggers from hidden or auxiliary entities as secondary (#70335)
* Mark device triggers from hidden or auxiliary entities as secondary

* Update tests
2022-04-21 08:01:32 +02:00
epenet
053c4428a9 Prettify json (component test fixtures) (#68892) 2022-03-30 11:37:17 +02:00
Paulus Schoutsen
a5383e40eb Media source to verify domain to avoid KeyError (#67137) 2022-02-23 16:22:39 -08:00
Tobias Sauerwein
3d1cad9f67 Improve handling of cloud hook registration (#65664)
Signed-off-by: cgtobi <cgtobi@gmail.com>
2022-02-16 16:42:45 +01:00
Paulus Schoutsen
707f112f51 Improve raised exception consistency for media source (#66497) 2022-02-14 15:41:53 +01:00
Joshua Roys
9134e5c844 Get discovered zeroconf IPv6 addresses (#65462) 2022-02-11 16:46:17 -06:00
Joakim Sørensen
0a2f57e4f8 Move netatmo dataclass registrations (#65052) 2022-01-28 10:51:32 +01:00
Tobias Sauerwein
aecb342fda Update Netatmo diagnostics (#64610) 2022-01-21 10:26:18 +01:00
Paulus Schoutsen
520ba0a82e Introduce new redact helper (#64579) 2022-01-20 23:02:47 +01:00
Tobias Sauerwein
801011863b Add diagnostics to Netatmo integration (#64392) 2022-01-19 15:52:20 -08:00
epenet
e492cb5156 Import webhook in netatmo (#64105)
* Import webhook in netatmo

* Adjust tests

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-14 13:01:14 +01:00
Ville Skyttä
f913961d63 Use DeviceAutomationType in tests/components/[m-r]* (#62443) 2021-12-20 22:29:22 +01:00
Tobias Sauerwein
45c463b61c Fix Netatmo climate issue (#61154)
Signed-off-by: cgtobi <cgtobi@gmail.com>
2021-12-07 13:56:31 +01:00
Tobias Sauerwein
cf7a614309 Add battery sensor for Netatmo climate devices (#60911) 2021-12-03 09:33:24 -08:00
Tobias Sauerwein
653fb5b637 Update Netatmo climate platform (#59974) 2021-12-02 10:31:54 +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
3cdca4a657 Use ZeroconfServiceInfo in netatmo tests (#60048) 2021-11-21 08:40:46 +01:00
Paulus Schoutsen
31153ac155 Move fixtures part 1 (#58902) 2021-11-01 20:47:05 -07:00
Tobias Sauerwein
3970a50553 Add reauth for Netatmo when token or token scope is invalid (#57487) 2021-10-26 16:09:10 +02:00
Tobias Sauerwein
1747578be5 Fix camera tests (#57020) 2021-10-03 16:55:07 -07:00
Tobias Sauerwein
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
Erik Montnemery
acdddabe1f Use hass_client_no_auth test fixture in integrations h-p (#55583) 2021-09-02 14:49:40 +02:00
Tobias Sauerwein
8e61ed39fd Fix flaky netatmo tests (#53644) 2021-07-30 20:07:23 +02:00
Tobias Sauerwein
583deada83 Add type annotations for Netatmo (#52811) 2021-07-21 14:36:57 -07:00
Tobias Sauerwein
4afede9e08 Add schedule selector for Netatmo (#52909)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
2021-07-12 15:27:48 -07:00
Tobias Sauerwein
db5bf8ab23 Bump pyatmo version (#52112)
* Bump pyatmo version

* Update tests
2021-06-23 15:51:27 +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
Tobias Sauerwein
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 <marhje52@gmail.com>

* Update homeassistant/components/netatmo/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Address comment

* Raise cov

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-20 14:59:19 +02:00
Tobias Sauerwein
3ed416ed4c Bump pyatmo to 4.2.3 (#50801)
* Bump pyatmo to 4.2.3

* Fix typo and update test fixture
2021-05-19 08:47:06 +02:00
Tobias Sauerwein
12342437e2 Fix battery attribute (#50405) 2021-05-10 20:40:44 +02:00
Ville Skyttä
153d6e891e Use config_entries.SOURCE_* constants (#49631) 2021-04-25 11:27:40 +02:00
Tobias Sauerwein
3bc6497cbd Add Netatmo schedule event handling (#46573)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-03-26 15:08:41 +01:00
Tobias Sauerwein
1ba54ac2bb Refactor Netatmo tests (#48277) 2021-03-26 11:13:27 +01:00
Tobias Sauerwein
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 <marhje52@gmail.com>

* Update homeassistant/components/netatmo/data_handler.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Import callback

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-25 19:07:45 +01:00
Tobias Sauerwein
0d699bb768 Add tests for Netatmo sensor (#46393)
* Add tests for Netatmo sensor

* Fix coveragerc

* Remove freezegun dependency

* Use f-strings instead of string concatenation

* Update tests/components/netatmo/test_sensor.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Address comment on config options test

* Replace deprecated call to async_get_registry()

* Fix public weather sensor update test

* Clean up

* Prevent division by zero

Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-24 07:17:51 +01:00
Tobias Sauerwein
9656f260a4 Add tests for Netatmo (#46372)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-23 14:28:35 +01:00
Tobias Sauerwein
365e8a74ee Add tests for Netatmo webhook handler (#46396)
* Add tests for Netatmo webhook handler

* Add async prefix

* Remove freezegun dependency

* Clean up
2021-03-20 08:26:11 +01:00