Skip to content
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

KNX/Climate: Fixed platform schema min/max values. #12477

Merged
merged 2 commits into from
Feb 17, 2018

Conversation

Julius2342
Copy link
Contributor

@Julius2342 Julius2342 commented Feb 17, 2018

As requested in a in a reviewcomment by @balloob : fixed min/max values of CONF_SETPOINT_SHIFT_MAX and CONF_SETPOINT_SHIFT_MIN within platform schema.

@Julius2342 Julius2342 changed the title Fixed platform schema min/max values of CONF_SETPOINT_SH… KNX/Climate: Fixed platform schema min/max values. Feb 17, 2018
@@ -48,9 +48,9 @@
default=DEFAULT_SETPOINT_SHIFT_STEP): vol.All(
float, vol.Range(min=0, max=2)),
vol.Optional(CONF_SETPOINT_SHIFT_MAX):
vol.All(int, vol.Range(min=-32, max=0)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the defaults back into the schema? I moved them to the setup and pass then in as second argument to get because defaults weren't valid values

@balloob balloob merged commit 4837254 into home-assistant:dev Feb 17, 2018
@balloob balloob mentioned this pull request Feb 22, 2018
@Julius2342 Julius2342 deleted the knx-platform-schema-fix branch February 25, 2018 19:54
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed integration: knx small-pr PRs with less than 30 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants