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
Use IP Address (host) provided by mDNS on Elgato Key Light #38539
Conversation
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.
Please update the config entry instead.
Furthermore, some tests are failing that need to be adjusted.
59eef62
to
e22a96d
Compare
4ebab74
to
414118d
Compare
@frenck I made the changes and tests are now passing, but I was wondering if I should make the call to |
Nope, the flow context is not related to the unique ID handling. |
Given that, and unless I'm missing something, I believe this is now complete! |
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.
self._abort_if_unique_id_configured()
Must now update the host in the existing config entry:
self._abort_if_unique_id_configured(updates={CONF_HOST: user_input[CONF_HOST]})
Thanks for your patience, @frenck, I think I got it now (python is not my strong) I also updated the test case to make sure that the host change is reflected in the config entry. |
1d75246
to
447200b
Compare
✅ Nice! One small issue with the formatting left (Black errored on the CI). |
447200b
to
ffd7c96
Compare
@frenck that's now also fixed! |
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.
Thanks, @pedrolamas 👍
Proposed change
On Elgato Key Light integration, take the IP reported by mDNS/Zeroconf, obtain the local domain name, and use that for the rest of the configuration flow (instead of the mDNS name)
Type of change
Dependency upgrade
Bugfix (non-breaking change which fixes an issue)
New integration (thank you!)
New feature (which adds functionality to an existing integration)
Breaking change (fix/feature causing existing functionality to break)
Code quality improvements to existing code or addition of tests
This PR fixes or closes issue: fixes Use host for mDNS on Elgato Key Light discovery integration #38537
This PR is related to issue:
Link to documentation pull request:
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: