Commit graph

81 commits

Author SHA1 Message Date
David Bonnes
1ffde403f0
Ensure evohome leaves no lingering timers (#122860) 2024-07-30 17:18:33 +02:00
David Bonnes
57554aba57
Fix broken token caching for evohome (#122664)
* bugfix token caching
2024-07-26 21:28:58 +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
e6b2a9b5c4
Remove redundant logging from evohome (#119482)
remove redundant logging
2024-06-12 13:45:03 +02:00
David Bonnes
d40c940c20
Move evohome's API broker to the coordinator module (#118565)
* move Broker to coordinator module

* mypy tweak

* mypy
2024-06-06 13:02:50 -04:00
David Bonnes
8ea3a6843a
Harden evohome against failures to retrieve zone schedules (#118517) 2024-06-03 21:48:48 +02:00
David Bonnes
85d979847c
Move evohome helper functions to separate module (#118497)
initial commit
2024-05-31 10:22:15 +02:00
David Bonnes
a3fcd6b32f
Fix evohome so it doesn't retrieve schedules unnecessarily (#118478) 2024-05-30 19:23:58 +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
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
Marc Mueller
14e19c6d9c
Remove unnecessary type ignores (#116036) 2024-04-23 17:32:21 +02:00
David Bonnes
30a60fd38b
Improve debug logging for evohome (#110256)
better logging
2024-04-20 20:17:11 -07:00
Marc Mueller
0e3945ca6c
Add empty line after module docstring [d-f] (#112698) 2024-03-08 14:15:26 +01:00
David Bonnes
0566ceca0f
Tweak evohome code quality (#107596)
* initial commit

* lint

* initial commit
2024-01-21 22:22:04 +01:00
David Bonnes
7f619579fa
Harden zone schedule processing for evohome (#108079) 2024-01-15 11:24:55 +01:00
David Bonnes
2a8444b245
Fix evohome high_precision temps not retreived consistently (#107366)
* initial commit

* doctweak

* remove hint

* doctweak
2024-01-07 20:04:14 +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
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
David Bonnes
af4ccefb8a
Bump evohome-async to 0.4.6 (#103534)
* bump client to 0.4.5

* bump to 0.4.6

* adress lint mypy fails
2023-11-06 22:13:17 +01:00
David Bonnes
5cd61a0cf4
Remove redundant code from the evohome integration (#103508)
* remove unreachable except clause

* remove uneccesary try
2023-11-06 15:17:28 +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
David Bonnes
8a87ea5506
Harden evohome against failures to retrieve high-precision temps (#102989)
fix hass-logger-period
2023-10-29 13:28:35 +01:00
epenet
5958e7c515
Improve type hints in evohome (#87266) 2023-02-03 16:18:10 +01: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
Michaël Arnauts
7142b4ecac
Fixes some grammar mistakes (#84283) 2022-12-20 11:10:31 +01:00
epenet
e7ae2fada7
Remove evohome from mypy ignore list (#75175) 2022-07-14 21:40:39 +02: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
Franck Nijhof
8f4caf4141
Clean up accessing event helpers via hass (#72011) 2022-05-17 19:36:29 +02:00
Franck Nijhof
5f44d0f8f9
Clean up accessing storage.Store helper via hass (#72009) 2022-05-17 18:45:57 +02:00
Franck Nijhof
69cc6ab5f1
Clean up accessing entity_registry.async_get_registry helper via hass (#72005) 2022-05-17 16:40:45 +02:00
epenet
0b18459ab8
Use EntityFeature enum in evohome (#69385) 2022-04-06 11:53:41 +02:00
Franck Nijhof
f4aa18de31
Replace hass.helpers: async_call_later() (#63929) 2022-01-11 13:30:59 -08:00
epenet
c7cb26cbab
Use Platform enum in load_platform [a-l] (#63750) 2022-01-10 10:30:47 +01:00
epenet
656d383ba6
Ensure service calls are typed [e-g] (#62912)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 14:23:01 +01:00
Ville Skyttä
8bc1509afa
Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[de]* (#57990) 2021-10-22 16:28:56 +02:00
Marc Mueller
0815eede4b
Replace lists with tuples (2) (#53685) 2021-07-30 01:20:03 +02:00
Marc Mueller
f6b162bc39
Add pylint CodeStyle extension (#53147) 2021-07-19 06:57:06 -07:00
David Bonnes
28e9b9e01d
Add evohome water_heater service calls, bump client to 0.3.15 (#50803) 2021-05-19 11:41:20 +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
Erik Montnemery
6c084ae6ce
Update integrations a-e to override extra_state_attributes() (#47756) 2021-03-11 16:51:03 +01:00
David Bonnes
bb146680ce
Eliminate evohome unhandled exceptions when client API call fails (#43681) 2020-11-27 12:05:51 +01:00
David Bonnes
5e3f4954f7
Code quality improvement for evohome (#43678) 2020-11-27 09:28:05 +01:00
David Bonnes
c2cc605343
Bugfix schedule assigned to wrong day of week (#43676) 2020-11-27 09:20:20 +01:00
David Bonnes
fd01636058
Fix evohome coroutine not allowed to be passed to HassJob (#42730) 2020-11-05 10:17:48 +01:00
Paulus Schoutsen
254e7eb407
Fix evohome scheduling coroutines (#42821) 2020-11-04 10:04:45 +01:00