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

Use voluptuous for RPi GPIO #3371

Merged
merged 2 commits into from
Sep 18, 2016
Merged

Use voluptuous for RPi GPIO #3371

merged 2 commits into from
Sep 18, 2016

Conversation

fabaff
Copy link
Member

@fabaff fabaff commented Sep 13, 2016

Description:
Migration of the configuration check to voluptuous.

Related issue (if applicable): fixes 127528299

Example entry for configuration.yaml (if applicable):

binary_sensor:
  platform: rpi_gpio
  ports:
    11: PIR Office
    12: PIR Bedroom
  pull_mode: "UP"
  bouncetime: 50
  invert_logic: false

switch:
  platform: rpi_gpio
  ports:
    11: Fan Office
    12: Light Desk
  invert_logic: false

It would be nice if somebody could take a look at the changes and run a quick test. Thanks.

@fabaff fabaff mentioned this pull request Sep 13, 2016
_LOGGER = logging.getLogger(__name__)

_SENSORS_SCHEMA = vol.All(
cv.ensure_list,
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks

@balloob balloob merged commit 04d31e4 into home-assistant:dev Sep 18, 2016
@fabaff fabaff deleted the voluptuous-rpi branch September 18, 2016 18:35
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants