-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
(Re)Add support for multiple Pi-Holes #27569
(Re)Add support for multiple Pi-Holes #27569
Conversation
pinging @fabaff for a review |
Re-pinging @fabaff for review |
5258f1d
to
4f43b20
Compare
conf[CONF_NAME], | ||
conf[CONF_SLUG], | ||
conf[CONF_HOST], | ||
names.get(conf[CONF_NAME], slugs[conf[CONF_SLUG]]), |
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'm using the default value functionality of get
here, to fallback onto identifying the dupe via slug if it was not triggered on name.
179954f
to
74bdee2
Compare
6334888
to
514c902
Compare
Seems to have self-resolved. |
514c902
to
c2f1dc3
Compare
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.
Great!
There's still a breaking change since we made host config item required. Please mention this in the breaking change paragraph. |
@MartinHjelmare all set. |
Breaking Change:
The default value for
host
was removed, and now must be specified manually.Description:
(Re)Adds support for configuring multiple Pi-holes. This was inadvertently removed in #25837
Related issue (if applicable): fixes #26700
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#10758
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: