-
-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
Elk-M1 fixes #18154
Elk-M1 fixes #18154
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.
Looks good!
vol.Optional(CONF_TASK): CONFIG_SCHEMA_SUBDOMAIN, | ||
vol.Optional(CONF_THERMOSTAT): CONFIG_SCHEMA_SUBDOMAIN, | ||
vol.Optional(CONF_ZONE): CONFIG_SCHEMA_SUBDOMAIN, | ||
vol.Optional(CONF_AREA, default={CONF_ENABLED: True}): |
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.
An empty dict would also work as default value, since the default value is passed to the CONFIG_SCHEMA_SUBDOMAIN
where the defaults of the dict are populated.
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.
Thank you! I made the change you suggested.
Can be merged when build passes. |
Description:
This fixes two problems that were found on the newly released Elk-M1 code in 0.81. Both are setting defaults in voluptuous. Both are minor fixes. No documentation changes required.
Related issue (if applicable): fixes #
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
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:
REQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.If the code does not interact with devices: