8000 Use voluptuous for D-Link Switch by fabaff · Pull Request #2907 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use voluptuous for D-Link Switch #2907

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

Merged
merged 1 commit into from
Aug 20, 2016
Merged

Use voluptuous for D-Link Switch #2907

merged 1 commit into from
Aug 20, 2016

Conversation

fabaff
Copy link
Member
@fabaff fabaff commented Aug 20, 2016

Description:
Migration of the configuration check to voluptuous.

Related issue (if applicable): fixes 127528299

Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#

Example entry for configuration.yaml (if applicable):

switch:
  platform: dlink
  host: IP_ADRRESS
  name: D-Link plug
  username: YOUR_USERNAME
  password: YOUR_PASSWORD

@omgapuppy, would be nice if you could take a look at the changes and run a quick test.

8000
password = config.get(CONF_PASSWORD)
name = config.get(CONF_NAME)

add_devices([SmartPlugSwitch(SmartPlug(host, password, username, name)])

Choose a reason for hiding this comment

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

farcy v1.1

  • 76: E901 SyntaxError: invalid syntax

@fabaff fabaff mentioned this pull request Aug 20, 2016
@balloob balloob merged commit 502c65c into home-assistant:dev Aug 20, 2016
@fabaff fabaff deleted the voluptuous-dlink branch August 21, 2016 07:12
@LinuxChristian
Copy link
Contributor

You guys are really quick to merge :)
Everything also looks good to me.

@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.

4 participants
0