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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lyric integration #31387
Add lyric integration #31387
Conversation
@shellster I was looking into HA support for Honeywell water detectors, and research led me to your PRs here 鈥斅燾an you confirm that this PR brings support for the latest python-lyric up-to-date with HA, but that more work would need to be added on top of this to support water detector devices in HA? Asking because I see apparent support for these devices in the python-lyric library here: https://github.com/bramkragten/python-lyric/blob/master/lyric/__init__.py#L304 Appreciate any pointers/advice you have here, as I'm considering building upon your work to add support for these myself... |
@jkrall: I actually stripped the water detector code in this last round of updates because it wasn't germane to the temperature code, and I was hoping that streamlining it would help increase the chance that it actually got merged. The water detector code is in an older commit (shellster@12baa93), if you look back. You still will need to add a component inside home-assist, and I haven't really figured out or needed to figure out how that works. Would definitely be interested in PR's to my branch, or it may make more sense to split that into a new module, but happy to entertain the idea. I just have no way to test it. |
To any devs: I don't know how to not fail the codecov/patch check. |
@balloob -it looks like @shellster needs a little help here. |
@frenck I don't know how/where I'm supposed to add documentation. Any help? |
The documentation page doesn't exist yet on home-assistant.io It needs its own PR and supporting info to describe to users how they can use the component. https://home-assistant.io/components/lyric/ or https://home-assistant.io/integrations/lyric/ |
I'll work on this this weekend. |
Documentation: home-assistant/home-assistant.io#12217 |
Push to force script rerun.
Removing added space that I needed to do a new push.
Problem found upstream. Waiting for another python-lyric pull to land: bramkragten/python-lyric#6 |
What do I need to do to get this landed? I don't want to be stuck in a loop repeatedly tending a branch to keep it up to date with dev, if no one is going to land this for me anytime soon. |
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.
I've taken a quick look, made the first small comment, scrolled through it a bit and noticed the configurator. That should actually not be used anymore. Since a large part of the code relies on it, I've left this initial review with just that comment.
Let's migrate it to a config flow before looking at it further. 馃憤
|
||
For more details about this component, please refer to the documentation at | ||
https://home-assistant.io/components/lyric/ |
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.
You can remove these additional lines. Just the first line is OK.
|
||
hass.http.register_view(LyricAuthenticateView(lyric)) | ||
|
||
_CONFIGURING["lyric"] = configurator.request_config( |
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.
The configurator is deprecated. Use a config flow instead.
and for handling OAuth:
The other PR #23015 was a long way and had a config flow, might want to check that one out, or use it as a starting point. |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
Breaking change
Proposed change
This is my attempt to resubmit a PR to add Honeywell Lyric T5-T6 support. I've included the changes requested from the previous attempt to merge, including getting the original author @bramkragten to merge some changes to his support library and bump the pip library, and then removing my updated version from this pull to make it cleaner.
Type of change
Example entry for
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: