102 Commits
Author SHA1 Message Date
Francesco Carnielli 57af4672d5 Fix power sensor state_class in Netatmo integration (#92468) 2023-05-04 17:36:31 +02:00
Erik Montnemery cc564026fa Move EntityCategory to homeassistant.const (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Petter LjungqvistandErik Montnemery 23c9580a4a Change pressure unit of measurement from mbar to hPa in Netatmo integration (#86210)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-01-25 13:18:47 +01:00
epenet 061cef1a5e Use SoundPressure unit and device class in integrations (#83585)
* Use SoundPressure unit and device class in integrations

* Adjust tests
2022-12-09 07:56:09 +01:00
epenet 0f2097595e Use new device class in netatmo (#83367) 2022-12-08 20:57:51 +01:00
Tobias Sauerwein 833d271eb3 Add missing Netatmo config url for public weather (#81220)
Add missing config url for public weather
2022-10-29 17:50:34 -04:00
Franck Nijhof a8f1cc0d33 Remove unneeded guards from (async_)add_entities call (#80471) 2022-10-17 21:11:58 +02:00
epenet 0e764b57c2 Use SensorDeviceClass.SPEED in components (#79262) 2022-09-29 09:37:21 +02:00
Tobias SauerweinandRobert Svensson 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
Tobias Sauerwein 49854b809c Netatmo entity renaming and clean up (#75337) 2022-07-27 14:17:38 +02:00
Franck Nijhof c3d19f3827 Clean up accessing device_registry helpers via hass (#72031) 2022-05-17 12:22:15 -07:00
Tobias SauerweinandShay Levy 3718d7fca8 Add Netatmo error logging when no public stations are available (#65298)
* Log error if public stations don't provide data

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Only log once

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Update homeassistant/components/netatmo/sensor.py

Co-authored-by: Shay Levy <levyshay1@gmail.com>

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-02-01 22:06:03 +02:00
Joakim Sørensen 0a2f57e4f8 Move netatmo dataclass registrations (#65052) 2022-01-28 10:51:32 +01:00
epenet 4bfc3eb22f Use new enums in netatmo (#61941) 2021-12-16 22:42:29 +01:00
Tobias Sauerwein cf7a614309 Add battery sensor for Netatmo climate devices (#60911) 2021-12-03 09:33:24 -08:00
Tobias Sauerwein a1aaecb3bf Use state class enums in Netatmo (#60725) 2021-12-01 19:40:51 +01:00
Tobias Sauerwein 037f4dbdb1 Use device class enums in Netatmo (#60723) 2021-12-01 18:30:47 +01:00
Marc Mueller e0c0d00833 Use assignment expressions 39 (#58829) 2021-10-31 18:56:25 +01: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
Tobias Sauerwein 83e45300c2 Add configuration_url to Netatmo devices (#58160) 2021-10-22 11:14:28 +02:00
Tobias Sauerwein 7560c7b3de Add long-term statistics support for rain sensors (#56847) 2021-10-01 07:24:55 +02:00
Erik Montnemery 103e21c278 Move temperature conversions to sensor base class (5/8) (#54475) 2021-08-12 13:26:17 +02:00
Franck Nijhof 91ab86c17c Add state class support to Netatmo (#54051) 2021-08-05 12:29:00 +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
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
Tobias Sauerwein cb0a7589ce Use class properties in netatmo (#52705) 2021-07-08 09:30:54 +02:00
Tobias SauerweinandDaniel Hjelseth Høyer 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 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 ac922916c1 Fix Netatmo sensor initialization (#51195) 2021-05-28 13:36:22 +02:00
Tobias SauerweinandMartin Hjelmare 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
J. Nick KostonandFranck Nijhof 3fa8ffa731 Enable mccabe complexity checks in flake8 (#49616)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +02:00
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
Erik Montnemery c900e3030b Migrate integrations n-q to extend SensorEntity (#48214) 2021-03-22 19:46:46 +01:00
Erik Montnemery 14a59d290a Update integrations j-o to override extra_state_attributes() (#47758) 2021-03-11 20:11:25 +01:00
Mick Vleeshouwer 461e766a93 Add device class CO2 to various integrations (#47676)
* Add device class CO2 to Fibaro

* Add device class CO2 to Awair

* Add device class CO2 to Tasmota

* Add device class CO2 to Netatmo

* Add device class CO2 to Ambient Station

* Update Tasmota tests

* Remove icon
2021-03-10 12:52:55 +01:00
Tobias Sauerwein b3c33fc1be Fix issue at Netatmo startup (#47452) 2021-03-05 21:41:55 +01:00
cgtobi f16ccae78b Fix Netatmo public weather sensor bug (#42858) 2020-11-05 14:16:51 +01:00
cgtobiandChris Talkington d13402108b Add unit of measurement to Netatmo sensors (#42208)
* Add unit of measurement

* Update homeassistant/components/netatmo/sensor.py

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

* Update sensor.py

* Update sensor.py

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-10-24 14:43:54 -05:00
cgtobi c052c261d5 Add Netatmo sensor enable default (#41928) 2020-10-22 10:01:43 +02:00
cgtobi 9dcc769a4a Remove max and min temperature sensors (#41859) 2020-10-15 09:24:20 +02:00
J. Nick Koston da2f9db62e Fix async functions accidentally marked as callbacks (#41607) 2020-10-10 16:54:36 +02:00
cgtobi 96035eb052 Fix missing weather sensors (#41540) 2020-10-09 12:34:52 +02:00
cgtobi 05765f1700 Remove Netatmo unnecessary battery sensors (#41321) 2020-10-07 15:25:11 +02:00