-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Centralizes Toon data, reducing API calls #23988
Conversation
|
Blocked by #23899 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok to merge when comment addressed.
For your next PR, please keep styling changes separate from functional changes. Makes it hard to see what is going on .
Since the blocking PR has been merged: |
Blocked by #25027 |
Fixes #21825 Signed-off-by: Franck Nijhof <[email protected]>
Signed-off-by: Franck Nijhof <[email protected]>
Signed-off-by: Franck Nijhof <[email protected]>
Rebased onto origin/dev, addressed review comment. |
I have a followup PR ready that enhances this a bit more and improves the use of Climate 1.0. However, I did not want to mix it up into this PR. |
* Centralizes Toon data, reducing API calls Fixes home-assistant#21825 Signed-off-by: Franck Nijhof <[email protected]> * Fixes bad copy past action in services.yaml Signed-off-by: Franck Nijhof <[email protected]> * Addresses review comments Signed-off-by: Franck Nijhof <[email protected]> * 👕 Fixes too many blank lines * Unsub dispatcher
Description:
Centralizes all Toon data, resulting in a heavy reduction of the API call's made.
The TTL cache mechanism used by the
toonapilib
can't handle our use case correctly.Related issue (if applicable): fixes #21825
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#9488
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest
.requirements_all.txt
by runningpython3 -m script.gen_requirements_all
..coveragerc
.If the code does not interact with devices:
Signed-off-by: Franck Nijhof [email protected]