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

Add voluptuous to ecobee, speedtest.net, fast.com, actiontec, forecast.io #2872

Merged
merged 3 commits into from
Aug 21, 2016

Conversation

nkgilley
Copy link
Contributor

Description:
For the speedtest.net and fast.com I'm not sure if I did it right. I get this exception when values are out of range:
voluptuous.error.MultipleInvalid: value must be at most 23 @ data['hour'][0]

Also I ran a sed command to remove carriage returns from actiontec.py and now it sees the whole file as different. I only added the PLATFORM_SCHEMA

Related issue (if applicable): fixes #2800

@fabaff fabaff mentioned this pull request Aug 18, 2016
@balloob
Copy link
Member

balloob commented Aug 19, 2016

Nothing you can do with actiontec. You replaced the new lines on each line, so each line actually did change.

# pylint: disable=unused-argument
def get_scanner(hass, config):
"""Validate the configuration and return an Actiontec scanner."""
if not validate_config(config,
Copy link
Member

Choose a reason for hiding this comment

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

Please remove the use of validate_config

Copy link
Member

Choose a reason for hiding this comment

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

This is no longer needed. voluptuous is taking care that the required values are present.

@fabaff
Copy link
Member

fabaff commented Aug 19, 2016

Sorry, was offline while writing my comments. I didn't get the comments by @balloob.

@fabaff fabaff changed the title add voluptuous to ecobee, speedtest.net, fast.com, actiontec, forecast.io Add voluptuous to ecobee, speedtest.net, fast.com, actiontec, forecast.io Aug 19, 2016
@balloob balloob merged commit 635e5c8 into home-assistant:dev Aug 21, 2016
@nkgilley nkgilley deleted the voluptuous branch August 23, 2016 21:46
@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.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use voluptuous
3 participants