1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-03 21:49:17 +00:00

88 Commits

Author SHA1 Message Date
Joost Lekkerkerker
021eed66f3
Add more base entities to netatmo ()
* Rename netatmo base entity file

* Add more Netatmo base entities

* Add more Netatmo base entities

* Add more Netatmo base entities

* Add more Netatmo base entities

* Apply suggestions from code review

* Add more Netatmo base entities

* Add snapshot tests to Netatmo platforms

* Add snapshot tests to Netatmo platforms

* Fix snapshots

* Fix tests

* Update snapshots

* Add fans

* Add fans

* Update homeassistant/components/netatmo/select.py

Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>

* Add snapshot tests to Netatmo platforms

* Update snapshots

* minor clean up

* Fix tests

* Fix

* Fix

* Fix

* Move dot split to weather station sensors

---------

Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
Co-authored-by: Tobias Sauerwein <cgtobi@gmail.com>
2024-04-07 13:36:12 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ()
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
988c71ecc5
Add empty line after module docstring [n-q] () 2024-03-08 15:04:07 +01:00
G Johansson
79bcf60c73
Adds migrated ClimateEntityFeature to Netatmo () 2024-02-03 03:56:57 +01:00
G Johansson
36e3ba4834
Add TURN_ON/OFF ClimateEntityFeature for Netatmo () 2024-01-30 18:15:11 +01:00
Joost Lekkerkerker
68ddc1481e
Rename netatmo base entity file () 2024-01-12 11:30:34 +01:00
deosrc
5623834b37
Add Netatmo temperature services ()
* Update datetime strings to match input_datetime integration

* Add netatmo service to set temperature

* Add netatmo service to clear temperature setting

* Fix formatting

* Add tests for new services

* Fix mypy error

* Fix formatting

* Fix formatting

* Apply suggestions from code review (WIP)

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Complete changes from review suggestions

* Fix build error

* Add service to set temperature for time period

* Expand and fix test

* Replace duplicated strings with links

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-11-23 08:10:10 +01:00
Tobias Sauerwein
fa6d8d281d
Change log level to debug in Netatmo ()
Change log level to debug
2023-11-04 12:31:57 +01:00
Tobias Sauerwein
96409cf0e0
Use pyatmo device type enum instead of string () 2023-11-04 11:28:26 +01:00
Tobias Sauerwein
302b444269
Add service set_preset_mode_with_end_datetime in Netatmo integration ()
* Add Netatmo climate service set_preset_mode_with_end_datetime to allow you to specify an end datetime for a preset mode

* Make end date optional

* address review comments

* Update strings

* Update homeassistant/components/netatmo/const.py

* Update homeassistant/components/netatmo/strings.json

---------

Co-authored-by: Adrien JOLY <adrien.joly-veillith@live.fr>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-10-14 14:44:16 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry ()
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
epenet
8b867d612f
Use UnitOfTemperature in climate entities [m-s] () 2022-12-02 19:56:18 +01:00
Tobias Sauerwein
6c23de94e1
Fix error when setting Netatmo climate preset () 2022-10-20 23:06:49 -04:00
Tobias Sauerwein
81abeac83e
Netatmo refactor to use pyatmo 7.0.1 () ()
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2022-09-25 21:55:58 -04:00
epenet
6affd9c6fb
Import climate constants from root [m-z] () 2022-09-10 23:42:28 +02:00
Tobias Sauerwein
49854b809c
Netatmo entity renaming and clean up () 2022-07-27 14:17:38 +02:00
epenet
073833fcec
Use climate enums in netatmo () 2022-04-26 09:18:09 +02:00
epenet
96819fff74
Use EntityFeature enum in components (n**) () 2022-04-06 21:34:29 -10:00
Joakim Sørensen
0a2f57e4f8
Move netatmo dataclass registrations () 2022-01-28 10:51:32 +01:00
Tobias Sauerwein
f2e4613db5
Bump pyatmo to 6.2.1 () 2021-12-19 21:00:55 -08:00
Tobias Sauerwein
45c463b61c
Fix Netatmo climate issue ()
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 () 2021-12-03 09:33:24 -08:00
Tobias Sauerwein
653fb5b637
Update Netatmo climate platform () 2021-12-02 10:31:54 +01:00
Tobias Sauerwein
68011ee952
Clean up Netatmo climate platform ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-01 18:35:12 +01:00
Tobias Sauerwein
f94bbf351d
Set Netatmo max default temperature () 2021-10-31 15:38:01 +01:00
Tobias Sauerwein
ac4496b985
Use async_on_unload in Netatmo () 2021-10-26 13:43:54 +02:00
epenet
9ae7f0ecd7
Add new attribute constants for DeviceInfo registration ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-23 21:01:34 +02:00
Marc Mueller
ea2e94a4e5
Use assignment expressions 24 () 2021-10-22 14:07:19 +02:00
Tobias Sauerwein
83e45300c2
Add configuration_url to Netatmo devices () 2021-10-22 11:14:28 +02:00
Ville Skyttä
de6e7ea016
Replace *args and **kwargs type hint collections with value types () 2021-08-21 10:20:09 +03:00
Tobias Sauerwein
8e61ed39fd
Fix flaky netatmo tests () 2021-07-30 20:07:23 +02:00
Marc Mueller
0815eede4b
Replace lists with tuples (2) () 2021-07-30 01:20:03 +02:00
Tobias Sauerwein
583deada83
Add type annotations for Netatmo () 2021-07-21 14:36:57 -07:00
Tobias Sauerwein
7291228e16
Remove boilerplate code in favour of attributes in Netatmo integration ()
* 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
ceec871340
Make Netatmo use async pyatmo ()
* 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 ()
* 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 () 2021-05-10 20:40:44 +02:00
Tobias Sauerwein
86393bdbba
Fix Netatmo climate () 2021-05-07 15:10:46 +02:00
Franck Nijhof
2ed386f9e6
Migrate to async_get_current_platform everywhere () 2021-05-03 09:34:28 -07:00
Tobias Sauerwein
3bc6497cbd
Add Netatmo schedule event handling ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-03-26 15:08:41 +01:00
J. Nick Koston
c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
Marc Mueller
3d2b81a401
Update typing 11 () 2021-03-18 13:21:46 +01:00
Tobias Sauerwein
6b98583bc1
Add tests for Netatmo climate ()
* Add tests for Netatmo climate

* Add comments and fake webhook events

* Split tests

* Split tests

* Clean up

* Fix coveragerc

* Fix requirements

* Remove freezegun dependency

* Move async_block_till_done to

* Call async_handle_webhook directly

* Use async_handle_webhook directly p2

* Exclude helper.py from

* Remove assertion of implementation details

* Use the webhook integration handler

* Extract function
2021-03-15 12:45:36 +01:00
Erik Montnemery
14a59d290a
Update integrations j-o to override extra_state_attributes() () 2021-03-11 20:11:25 +01:00
Tobias Sauerwein
b3c33fc1be
Fix issue at Netatmo startup () 2021-03-05 21:41:55 +01:00
Tobias Sauerwein
d20659d2ee
Fix issue when setting boost preset for a turned off Netatmo thermostat () 2021-03-02 13:02:59 -08:00
Tobias Sauerwein
722b1e8746
Add Netatmo device trigger ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-24 19:20:40 +01:00
J. Nick Koston
2807cb1de7
Implement suggested area for netatmo () 2021-02-19 21:57:37 -08:00
Tobias Sauerwein
b5690053a9
Only add Netatmo climate schedule attribute if not None () 2021-01-15 13:15:59 +01:00
Tobias Sauerwein
e05bb7e858
Expose selected Netatmo schedule () 2021-01-13 17:01:29 +01:00