Commit graph

34 commits

Author SHA1 Message Date
Franck Nijhof
5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
Maciej Bieniek
9a68f0abe8
Store Shelly climate last_target_temp value in restore extra data (#86482)
fixes undefined
2023-01-24 07:28:34 -10:00
Shay Levy
d5797d9f7d
Cleanup Shelly imports (#86359)
* Cleanup Shelly imports

* Cleanup tests
2023-01-22 01:26:54 +02:00
Franck Nijhof
f39f3b612a
String formatting and max line length - Part 5 (#84501)
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2022-12-23 16:43:17 +01:00
Maciej Bieniek
e11917b7cb
Fix restored temperature values in Shelly climate platform (#83428)
* Set last_target_temp value according the unit system

* Convert restored temperature values

* Add test

* Improve comments

* Move _last_target_temp value to constants
2022-12-07 09:11:18 +02:00
epenet
8b867d612f
Use UnitOfTemperature in climate entities [m-s] (#83131) 2022-12-02 19:56:18 +01:00
Shay Levy
4a089b5c28
Add tests coverage for Shelly climate platform (#82529) 2022-11-22 09:04:55 -06:00
epenet
39ac2c1101
Adjust type hints for ClimateEntityFeature (#82206) 2022-11-16 21:17:50 +01:00
Shay Levy
aea7a9af18
Bump aioshelly to 4.0.0 (#80423)
* Bump aioshelly to 4.0.0

* Remove leftover

* Fix number platform

* Set last_update_success to false upon failure in number and climate

* Set last_update_success upon failurie in entity
2022-10-20 15:08:48 +03:00
Maciej Bieniek
1b130eb271
Save last target temperature in Shelly climate platform (#80561)
Save last target temp
2022-10-18 22:55:50 +03:00
Shay Levy
93b2a6cc26
Refactor Shelly to use data class for ConfigEntry data (#79671)
* Refactor Shelly to use data class for ConfigEntry data

* Apply suggestions from code review

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update homeassistant/components/shelly/__init__.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Optimize usage of shelly_entry_data in _async_setup_block_entry

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-10-06 10:10:58 +03:00
Shay Levy
22c68b95bf
Refactor Shelly wrapper to coordinator (#79628) 2022-10-05 14:39:58 +02:00
Maciej Bieniek
c46f55caa8
Add reauth flow to Shelly integration (#78786) 2022-09-24 22:01:49 -04:00
epenet
6affd9c6fb
Import climate constants from root [m-z] (#78178) 2022-09-10 23:42:28 +02:00
Maciej Bieniek
e03eb238e2
Protect against an exception in Shelly climate platform (#77102)
Check if state in HVACMode
2022-08-22 09:03:32 +02:00
Shay Levy
0d94324d58
Clean up Shelly async methods that are not awaiting (#72026) 2022-05-17 10:57:41 -07:00
Franck Nijhof
7d2deae592
Clean up use of deprecated async_get_registry methods (#72001) 2022-05-17 13:40:19 +02:00
epenet
a3938deb24
Use climate enums in shelly (#70736) 2022-04-26 09:14:31 +02:00
epenet
d5ab7e7525
Use EntityFeature enum in components (s** 1/2) (#69439) 2022-04-06 21:38:14 -10:00
Shay Levy
083d51a727
Cleanup - move Shelly logger to const (#68046) 2022-03-12 14:43:57 +02:00
Simone Chemelli
d65b2b37dc
Fix profile name update for Shelly Valve (#67778) 2022-03-07 09:05:10 -08:00
Paulus Schoutsen
5da923c341
Protect state.as_dict from mutation (#65693) 2022-02-04 14:45:25 -08:00
Maciej Bieniek
4a4b0d9418
Fix Shelly climate entity state (#64756)
* Fix For loops in _handle_coordinator_update()

* Change logic

* Suggested change

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>

* Move log

Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>
2022-01-25 08:27:30 +01:00
Simone Chemelli
a1e7459dc5
Fix misuse of cast for Shelly Valve (#64181) 2022-01-16 15:28:49 +01:00
Maciej Bieniek
3265a09083
Fix changing the preset mode (#64119) 2022-01-14 17:24:54 +01:00
Simone Chemelli
69c8a02e16
Address late Shelly review (#63754)
* Late review

* Apply review comments

* Revert review original comment

* Optimizization: loop exit

* Break instead of return

* Missing super init
2022-01-10 13:14:19 +01:00
Simone Chemelli
9479ef0a34
Fix climate channel for Shelly (#63756)
* Revert "Improve availability for Shelly Valve"

This reverts commit d8cbd81b456820153522e6d86bbd00c4a4a31129.

* Fix channel for climate
2022-01-10 01:16:13 +01:00
Maciej Bieniek
16f6bad897
Fix status type in Shelly climate platform (#63347) 2022-01-04 19:32:25 +01:00
Simone Chemelli
90345b1cf2
Fix logging for Shelly climate platform (#62264)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-18 22:28:26 -08:00
Simone Chemelli
72e1fa1392
Improve availability for Shelly Valve (#62129) 2021-12-17 09:16:02 +01:00
Simone Chemelli
db6b472e7a
Add restore logic to Shelly climate platform (#61632)
* Add restore logic to Shelly climate platform

* Handle missing channel on restore
2021-12-16 14:08:40 +01:00
Michael
90e52cd3ad
Use relative imports [S-Z] (#61576) 2021-12-13 09:39:13 +01:00
Simone Chemelli
110fd261ee
Fix & update for latest Shelly Valve firmware (#60458) 2021-11-28 20:18:15 -08:00
Simone Chemelli
c4128f853d
Add climate platform to Shelly (#59712)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-11-21 16:34:00 -06:00