Commit graph

61 commits

Author SHA1 Message Date
David Bonnes
a36b350954
Fix evohome HVAC modes for VisionPro Wifi systems (#129161)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-29 13:37:35 +01:00
David Bonnes
24106114b4
Correct / tidy up entity doc strings for evohome (#126380)
* correct / tidy up entity doc strings

* tweak
2024-09-21 15:44:35 +01:00
Joost Lekkerkerker
9ecdee3b78
Extract Evohome base entities to separate module (#122515)
* Extract Evohome base entities to separate module

* Extract Evohome base entities to separate module
2024-07-24 13:22:48 +02:00
David Bonnes
42b9c0448c
Add coordinator to evohome and prune async_update code (#119432)
* functional programming tweak

* doctweak

* typing hint

* rename symbol

* Switch to DataUpdateCoordinator

* move from async_setup to EvoBroker

* tweaks - add v1 back in

* tidy up

* tidy up docstring

* lint

* remove redundant logging

* rename symbol

* split back to inject authenticator clas

* rename symbols

* rename symbol

* Update homeassistant/components/evohome/__init__.py

Co-authored-by: Joakim Plate <elupus@ecce.se>

* allow exception to pass through

* allow re-authentication with diff credentials

* lint

* undo unrelated change

* use async_refresh instead of async_config_entry_first_refresh

* assign None instead of empty dict as Falsey value

* use class attrs instead of type hints

* speed up mypy hint

* speed up mypy check

* small tidy up

* small tidy up

---------

Co-authored-by: Joakim Plate <elupus@ecce.se>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-07-23 16:47:53 +02:00
David Bonnes
46aa3ca97c
Move evohome constants to separate module (#118471)
* move constants to const.py

* make module docstring tweaks

* move schemas back to init
2024-05-30 11:13:45 +01:00
Marc Mueller
0e3945ca6c
Add empty line after module docstring [d-f] (#112698) 2024-03-08 14:15:26 +01:00
G Johansson
6c8636ae7b
Add new climate feature flags to evohome (#109429) 2024-02-03 12:13:20 +01:00
David Bonnes
7deebf8817
Handle renaming of evohome zones (#108089) 2024-01-16 13:45:24 +01:00
David Bonnes
dd2527db5b
Bump evohome client to 0.4.17 (#108051) 2024-01-15 09:40:01 +01:00
David Bonnes
aa9f00099d
Make evohome strictly typed (#106012)
* initial commit

* return to conventional approach

* add type hint for wrapper

* use walrus operator
2023-12-21 13:22:42 +01:00
David Bonnes
45b5ddfad7
Use library constants instead of literals in Evohome (#105039)
* initial commit

* roll back some consts

* doctweak

* tweak linting

* doctweak
2023-12-17 23:08:18 +01:00
David Bonnes
f50cd5ab5e
Bump evohome-async to 0.4.9 (#103660) 2023-11-30 18:17:34 +01:00
David Bonnes
3cfb2d557f
Bump evohome-async to 0.4.4 (#103084)
* initial commit

* use correct attr

* fix hass-logger-period

* initial commit

* reduce footprint

* reduce footprint 2

* reduce footprint 3

* reduce footprint 4

* reduce footprint 6

* reduce footprint 7

* reduce footprint 8

* reduce footprint 9

* bump client to 0.4.1

* missing commit - changed method name

* bump client to 0.4.3

* bump client to 0.4.4
2023-11-06 10:10:28 +01:00
Franck Nijhof
b1abe6812b
Fix HAVCMode typing in Honeywell Total Connect Comfort (#94636) 2023-06-15 14:07:41 +02:00
Franck Nijhof
b0cee0bc46
String formatting and max line length - Part 1 (#84390)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-12-22 10:12:50 +01:00
epenet
44d3f2192c
Use UnitOfTemperature in climate entities [a-f] (#83125) 2022-12-04 11:53:56 +02:00
epenet
b166a6d88b
Cleanup supported_features default values (#82306) 2022-11-18 10:09:40 +01:00
epenet
ec532414ba
Import climate constants from root [a-l] (#78177) 2022-09-10 23:39:52 +02:00
Martin Hjelmare
078a4974e1
Fix evohome preset modes (#76606) 2022-08-11 08:53:40 -04:00
Franck Nijhof
ef9142f379
Fix temperature unit in evohome (#75842) 2022-07-27 13:58:58 -07:00
epenet
e16bd1e471
Remove evohome climate from mypy ignore list (#75169)
* Remove evohome climate from mypy ignore list

* Raise error
2022-07-14 13:46:37 +02:00
epenet
fa51a39f1d
Use instance attributes in evohome (#74996) 2022-07-11 17:24:35 +02:00
epenet
0cdfd386a7
Use climate enums in evohome (#70639) 2022-04-25 13:34:59 +02:00
epenet
0b18459ab8
Use EntityFeature enum in evohome (#69385) 2022-04-06 11:53:41 +02:00
epenet
a08b758bfb
Add setup type hints [a-e] (#63597)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-07 16:24:13 +01:00
Marc Mueller
be201e3ebe
Use assignment expressions 27 (#58188) 2021-10-22 11:29:21 +02:00
Marc Mueller
0815eede4b
Replace lists with tuples (2) (#53685) 2021-07-30 01:20:03 +02:00
Franck Nijhof
168b3c100c
Remove HomeAssistantType alias - Part 4 (#49515) 2021-04-21 12:18:42 +02:00
Marc Mueller
91df3fa904
Update typing 06 (#48039) 2021-03-17 23:49:01 +01:00
David Bonnes
26bb604243
Remove evohome hvac_action as it is inaccurate (#38244) 2020-07-27 15:20:18 +02:00
Erik Montnemery
29bc93ea98
Rename ClimateDevice to ClimateEntity (#34591) 2020-04-25 18:04:03 +02:00
David Bonnes
9a099bdf0a
Ensure unique_ids for all evohome thermostats (#32604)
* initial commit

* small tweak
2020-03-16 11:04:12 +01:00
David Bonnes
ae0ea0f088
Bugfix evohome converting non-UTC timezones (#32120)
* bugfix: correctly handle non-UTC TZs
* bugfix: system mode is always permanent
* bugfix: handle where until is none
* tweak: improve logging to support above fixes
2020-03-05 20:42:52 +00:00
Eduard van Valkenburg
454e63b69e
Fix Evohome checking override duration (#31697) 2020-02-10 14:43:39 -08:00
David Bonnes
e00388eea0
switch evohome to use a whitelist for valid zonetype (#31047) 2020-01-21 18:49:15 +00:00
David Bonnes
8f37c843f5
Handle ghost zones gracefully (#31008) 2020-01-20 20:49:04 +00:00
David Bonnes
9b02ca96ba
Small tweaks for evohome (#31007) 2020-01-20 13:39:02 +00:00
David Bonnes
a40a5a754b initial commit (#30968) 2020-01-19 14:29:15 -08:00
David Bonnes
a037c1d788
Add services to evohome (#29816) 2020-01-18 12:21:22 +00:00
David Bonnes
2c1e354537
evohome: allow two round thermostats per gateway (#30589)
* bugfix issue #30517
* bump library, tweak name in manifest
* remove lint hint
2020-01-08 18:57:28 +00:00
David Bonnes
bce9f14751
isort the evohome code (#27977) 2019-10-20 20:20:53 +01:00
David Bonnes
44b6258e48
Add evohome high_precision temperatures (#27513)
* add high_precision (current) temperatures 
* bump client to use aiohttp for v1 client
* token saving now event-driven rather than scheduled
* protection against invalid tokens that cause issues
* tweak error message
2019-10-16 10:32:25 +01:00
David Bonnes
f500367721 Handle all single zone thermostats (#27168) 2019-10-03 18:04:30 -07:00
David Bonnes
a1997ee891 Bugfix evohome (#26810)
* address issues #25984, #25985

* small tweak

* refactor - fix bugs, coding erros, consolidate

* some zones don't have schedules

* some zones don't have schedules 2

* some zones don't have schedules 3

* fix water_heater, add away mode

* readbility tweak

* bugfix: no refesh after state change

* bugfix: no refesh after state change 2

* temove dodgy wrappers (protected-access), fix until logic

* remove dodgy _set_zone_mode wrapper

* tweak

* tweak docstrings

* refactor as per PR review

* refactor as per PR review 3

* refactor to use dt_util

* small tweak

* tweak doc strings

* remove packet from _refresh

* set_temp() don't have until

* add unique_id

* add unique_id 2
2019-09-30 21:35:10 -07:00
David Bonnes
f91dd4f5f8
Change evohome to asyncio client (#26042)
* fully async now
* add convergence (call update() 2 seconds after client API call) (issue#25400)
* handle dead TRVs (e.g. flat battery)
2019-09-01 11:45:41 +01:00
Paulus Schoutsen
0ccffc3e55 Lint 2019-07-31 12:46:17 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
David Bonnes
7cf0684aa1 [climate] Correct evohome hvac_action (#25407)
* inital commit

* take account of rounding up of curr_temp
2019-07-23 07:14:42 +02:00
David Bonnes
bf37cc8371 Tweak evohome migration (#25281)
* Initial commit

add hvac_action to zones, remove target_temp from controller

fix incorrect hvac_action

de-lint

Initial commit

de-lint & minor refactor

tweak docstrings, and type hints

tweak docstrings

* refactor setpoints property

* tweak docstring

* tweak docstring

* avoid a unnecessary I/O

* avoid unnecessary I/O

* refactor schedule/setpoints

* remove type hint

* remove type hint 2

* tweak code

* delint type hints

* fix regression
2019-07-22 10:45:31 +02:00
Paulus Schoutsen
50d4921d0a
Introduce PRESET_NONE for climate (#25360)
* Introduce PRESET_NONE for climate

* Require preset mode to be a string

* Lint

* Fix tests
2019-07-21 11:00:42 -07:00