Commit Graph

410 Commits (d75862762b842ab937aa28917ce7a82bcc1b2012)

Author SHA1 Message Date
GitHub Action c9589f763c [ci skip] Translation update 2021-12-01 00:17:12 +00:00
GitHub Action a925451906 [ci skip] Translation update 2021-11-30 00:13:53 +00:00
GitHub Action 3af54d96c7 [ci skip] Translation update 2021-11-28 00:14:19 +00:00
GitHub Action 78b47019f9 [ci skip] Translation update 2021-11-26 00:12:49 +00:00
Franck Nijhof 6b9c2d8295
Add shorthand attribute support to Camera platform (#59837) 2021-11-25 16:03:53 +01:00
GitHub Action d3c020325b [ci skip] Translation update 2021-11-25 00:13:33 +00:00
GitHub Action 9e606abb0c [ci skip] Translation update 2021-11-23 00:13:54 +00:00
GitHub Action 31d4239b64 [ci skip] Translation update 2021-11-22 00:13:02 +00:00
Franck Nijhof a51f2a433f
Upgrade pyatmo to 6.2.0 (#59975) 2021-11-19 12:36:25 +01:00
GitHub Action b82fac1a73 [ci skip] Translation update 2021-11-17 00:13:20 +00:00
GitHub Action 0228d11546 [ci skip] Translation update 2021-11-16 00:18:33 +00:00
GitHub Action f00effaba2 [ci skip] Translation update 2021-11-13 00:11:56 +00:00
GitHub Action 86b12af3dc [ci skip] Translation update 2021-11-10 00:17:39 +00:00
GitHub Action e35b83081e [ci skip] Translation update 2021-11-08 00:12:31 +00:00
GitHub Action 332a571bb4 [ci skip] Translation update 2021-11-07 00:12:38 +00:00
GitHub Action c8d8513a1a [ci skip] Translation update 2021-11-05 00:13:45 +00:00
GitHub Action c9c95165e4 [ci skip] Translation update 2021-11-04 00:12:21 +00:00
GitHub Action 2f4b7fe809 [ci skip] Translation update 2021-11-03 00:11:55 +00:00
GitHub Action 0a94badb72 [ci skip] Translation update 2021-11-02 00:12:41 +00:00
GitHub Action 4e419d8c6f [ci skip] Translation update 2021-11-01 00:13:04 +00:00
Marc Mueller e0c0d00833
Use assignment expressions 39 (#58829) 2021-10-31 18:56:25 +01:00
Tobias Sauerwein f94bbf351d
Set Netatmo max default temperature (#58718) 2021-10-31 15:38:01 +01:00
GitHub Action 7d408e3288 [ci skip] Translation update 2021-10-29 00:30:22 +00:00
GitHub Action 11cb04822e [ci skip] Translation update 2021-10-28 00:11:45 +00:00
GitHub Action e75e40f26e [ci skip] Translation update 2021-10-27 00:11:52 +00: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 ac4496b985
Use async_on_unload in Netatmo (#58461) 2021-10-26 13:43:54 +02:00
Tobias Sauerwein ab66efba0e
Add entity categories to Netatmo (#58383) 2021-10-25 12:38:59 +02:00
Allen Porter 31aa168bbb
Fix bug in MediaSource definintion and enable strict type checking (#58321) 2021-10-24 11:39:39 +02:00
GitHub Action 30fb619095 [ci skip] Translation update 2021-10-24 00:12:57 +00:00
epenet 9ae7f0ecd7
Add new attribute constants for DeviceInfo registration (#58289)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-23 21:01:34 +02:00
Marc Mueller ea2e94a4e5
Use assignment expressions 24 (#58181) 2021-10-22 14:07:19 +02:00
Tobias Sauerwein 83e45300c2
Add `configuration_url` to Netatmo devices (#58160) 2021-10-22 11:14:28 +02:00
GitHub Action a1176cc79a [ci skip] Translation update 2021-10-18 00:11:59 +00:00
GitHub Action 10b62370ff [ci skip] Translation update 2021-10-12 00:12:28 +00:00
Tobias Sauerwein c46e8cfbc1
Bump pyatmo to v6.1.0 (#57014) 2021-10-03 15:09:58 -07:00
GitHub Action f42c2f5170 [ci skip] Translation update 2021-10-02 12:59:05 +00:00
Tobias Sauerwein 7560c7b3de
Add long-term statistics support for rain sensors (#56847) 2021-10-01 07:24:55 +02:00
Tobias Sauerwein 2478ec887a
Allow camera usage with HA cloud (#56533) 2021-09-22 16:54:12 +02: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
Ville Skyttä b10fc89a6b
Automation trigger info type hint improvements (#55402)
* Make automation trigger info a TypedDict

* zwave_js trigger type hint fixes

* Remove redundant automation trigger info field presence checks

* Use async_initialize_triggers in mqtt and tasmota device_trigger tests
2021-09-04 02:25:51 +02:00
GitHub Action 291a2d6258 [ci skip] Translation update 2021-08-29 00:11:57 +00:00
GitHub Action 65d14909ee [ci skip] Translation update 2021-08-27 00:14:42 +00:00
GitHub Action ff14a11254 [ci skip] Translation update 2021-08-24 01:55:24 +00:00
GitHub Action 305475a635 [ci skip] Translation update 2021-08-23 00:12:20 +00:00
Ville Skyttä 0095c6baeb
Improve device trigger type hinting (#54907) 2021-08-22 20:32:50 +02:00
Ville Skyttä de6e7ea016
Replace *args and **kwargs type hint collections with value types (#54955) 2021-08-21 10:20:09 +03:00
Ville Skyttä 939fde0a50
ConfigType and async_setup/setup type hint improvements (#54739) 2021-08-18 13:22:05 +02:00
Erik Montnemery 103e21c278
Move temperature conversions to sensor base class (5/8) (#54475) 2021-08-12 13:26:17 +02:00
J. Nick Koston e99576c094
Pass width and height when requesting camera snapshot (#53835) 2021-08-10 19:33:06 -05:00
GitHub Action 64c9f9e1cb [ci skip] Translation update 2021-08-06 00:15:04 +00:00
Franck Nijhof 91ab86c17c
Add state class support to Netatmo (#54051) 2021-08-05 12:29:00 +02:00
Tobias Sauerwein 8e61ed39fd
Fix flaky netatmo tests (#53644) 2021-07-30 20:07:23 +02:00
Marc Mueller 0815eede4b
Replace lists with tuples (2) (#53685) 2021-07-30 01:20:03 +02:00
Marc Mueller 553521a76b
Add mixin classes for required keys in EntityDescription (#53610) 2021-07-28 11:50:13 +02:00
Marc Mueller b7f1f2330a
Use EntityDescription - netatmo (#53568)
* Use EntityDescription - netatmo

* Add coverage exclude

* Fix coverage exclude comment
2021-07-28 08:18:59 +02:00
Franck Nijhof d4c4263730
Adjust typing of _attr_extra_state_attributes (#53529) 2021-07-27 01:25:22 +02:00
Tobias Sauerwein 31079a05b3
Address late review comments on Netatmo (#53524) 2021-07-27 00:42:36 +02:00
Tobias Sauerwein 0b6e1d3d82
Bump version (#53359) 2021-07-22 22:01:24 -04:00
GitHub Action ecf0d4398d [ci skip] Translation update 2021-07-22 00:10:31 +00:00
Tobias Sauerwein 583deada83
Add type annotations for Netatmo (#52811) 2021-07-21 14:36:57 -07:00
Daniel Hjelseth Høyer 2cf930f3bd
Netatmo, use nameclass (#53247) 2021-07-21 08:46:01 +02:00
Marc Mueller f6b162bc39
Add pylint CodeStyle extension (#53147) 2021-07-19 06:57:06 -07:00
Marc Mueller c35b5a1c64
Add sound pressure unit constants (dB + dBa) (#53159) 2021-07-19 06:54:38 -07:00
GitHub Action 531733da7b [ci skip] Translation update 2021-07-19 00:09:50 +00:00
GitHub Action 62a2efaf27 [ci skip] Translation update 2021-07-16 00:10:34 +00:00
Daniel Hjelseth Høyer fbad453c89
Pylint 2.9.3 (#52972)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44: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
GitHub Action b347226820 [ci skip] Translation update 2021-07-10 00:09:24 +00:00
GitHub Action f7e4db512f [ci skip] Translation update 2021-07-09 00:09:30 +00:00
Tobias Sauerwein cb0a7589ce
Use class properties in netatmo (#52705) 2021-07-08 09:30:54 +02:00
Tobias Sauerwein f9c7137d02
Use dataclasses in netatmo data handler (#52537)
* Switch to using dataclasses

* Clean up

* Update homeassistant/components/netatmo/data_handler.py
2021-07-05 13:05:18 +02:00
Tobias Sauerwein 7291228e16
Remove boilerplate code in favour of attributes in Netatmo integration (#52395)
* Make use of attributes

* Add suggestions

* Update homeassistant/components/netatmo/sensor.py

Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>

* Update homeassistant/components/netatmo/sensor.py

Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>

Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
2021-07-02 11:36:37 +02:00
Tobias Sauerwein 14d3286b21
Clean up netatmo sensor data processing (#52403) 2021-07-02 10:08:54 +02:00
Tobias Sauerwein b4e550dee2
Bump pyatmo to v5.2.0 (#52365)
* Bump pyatmo to v5.2.0

* Revert formatting changes
2021-07-01 00:19:22 +02:00
Tobias Sauerwein db5bf8ab23
Bump pyatmo version (#52112)
* Bump pyatmo version

* Update tests
2021-06-23 15:51:27 +02:00
Tobias Sauerwein 5a4a1a250d
Catch exception for failed webhook drop for netatmo (#52119) 2021-06-23 14:56:20 +02:00
Erik Montnemery 76c3058d15
Rename device trigger base schema to DEVICE_TRIGGER_BASE_SCHEMA (#51719) 2021-06-10 19:11:38 +02:00
GitHub Action 7615af35d8 [ci skip] Translation update 2021-06-07 00:18:16 +00:00
GitHub Action c81df50191 [ci skip] Translation update 2021-06-06 00:19:43 +00:00
Tobias Sauerwein d975f9eb0a
Fix Netatmo sensor logic (#51338) 2021-06-01 17:58:25 +02:00
Tobias Sauerwein 9bd74961f0
Fix unnecessary API calls in Netatmo (#51260) 2021-05-30 20:55:45 -07:00
Tobias Sauerwein d66d7cbd37
Fix Netatmo data class update (#51215)
* Catch if data class entry is None

* Guard
2021-05-29 14:10:45 +02:00
Tobias Sauerwein ac922916c1
Fix Netatmo sensor initialization (#51195) 2021-05-28 13:36:22 +02:00
Tobias Sauerwein eb66f8ef6d
Fix Netatmo data class update (#51177) 2021-05-28 08:00:11 +02:00
tkdrob d1c4d0de49
Use bool annotations for setup entries (#51166) 2021-05-27 17:39:06 +02:00
tkdrob 028a07d86f
Wrap up selectors (#50794)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
Tobias Sauerwein 0623648309
Clean up Netatmo integration (#50904) 2021-05-20 19:28:21 +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
Maciej Bieniek e06a2a53c4
Add constructor return type in integrations L-N (#50888)
* Add constructor return type in integrations L-N

* Small fix
2021-05-20 13:06:44 +01: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 e2f497ceba
Fix Netatmo selector for setting persons being at home (#50373) 2021-05-12 00:22:07 +02:00
Tobias Sauerwein 12342437e2
Fix battery attribute (#50405) 2021-05-10 20:40:44 +02:00
Tobias Sauerwein 86393bdbba
Fix Netatmo climate (#50238) 2021-05-07 15:10:46 +02:00
Franck Nijhof 2ed386f9e6
Migrate to async_get_current_platform everywhere (#50034) 2021-05-03 09:34:28 -07:00
HomeAssistant Azure 04266301e9 [ci skip] Translation update 2021-05-03 00:05:16 +00:00
Franck Nijhof a6206b2819
Clean up connection classes in integrations M-O (#49892) 2021-04-30 21:03:37 -10:00
J. Nick Koston 3f3f77c6e6
Reduce config entry setup/unload boilerplate N-P (#49777) 2021-04-27 20:42:21 +02:00
J. Nick Koston 3fa8ffa731
Enable mccabe complexity checks in flake8 (#49616)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +02:00
Marc Mueller c07646db5d
Update typing syntax (#49480)
* Update typing syntax

* Replace typing imports with ones from collections where possible

* Changes after review
2021-04-20 17:40:41 +02:00