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
Add config flow for rachio #32757
Add config flow for rachio #32757
Conversation
cd1fdca
to
c061d1d
Compare
c061d1d
to
1572b29
Compare
Also discoverable via homekit
1572b29
to
419f089
Compare
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
I'm blocked for testing at the moment because I hit the api limit. I also realized we fire off self._controller.current_schedule for each zone that gets added. For testing, I added an account with 64 zones. Looks like I'm going to have to fix that before I can continue |
Last commit seemed to take care of it. the startup is MUCH MUCH faster :) |
Ensue the run time coming from yaml gets imported into the option flow Only get the schedule once at setup instead of each zone (was hitting rate limits) Add the config entry id to the end of the webhook so there is a unique hook per config entry Breakout the slew of exceptions rachiopy can throw into RachioAPIExceptions Remove the base url override as an option for the config flow Switch identifer for device_info to serial number Add connections to device_info (mac address)
cb49fa3
to
fab3dcb
Compare
There is an existing bug where if you add a controller to two different home assistants only the last one gets the notifications. Confirmed not a regression. I'll try to fix that when I convert the webhooks in a new PR |
Tested on two different installs |
Retested after last commit |
Lots of restarts and no more rate limiting since I fixed the current_schedule api being called per zone |
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.
Nice! Some comments for future PRs.
@MartinHjelmare review items addressed in #32814 |
Proposed change
Config flow for rachio
Also discoverable via homekit
Type of change
Example entry for
configuration.yaml
:# Example configuration.yaml
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale: