8000 Voluptuous for AsusWRT by kellerza · Pull Request #2998 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Voluptuous for AsusWRT #2998

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 3 commits into from
Aug 27, 2016
Merged

Voluptuous for AsusWRT #2998

merged 3 commits into from
Aug 27, 2016

Conversation

kellerza
Copy link
Member

Description:
Add Voluptuous for Asus WRT

Example entry for configuration.yaml (if applicable):

device_tracker:
  - platform: asuswrt

Checklist:

If code communicates with devices, web services, or a:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass

vol.Required(CONF_HOST): cv.string,
vol.Required(CONF_USERNAME): cv.string,
vol.Optional(CONF_PASSWORD): cv.string,
vol.Optional(CONF_PROTOCOL, default='ssh'): vol.Schema(['ssh', 'telnet']), 8000

Choose a reason for hiding this comment

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

farcy v1.1

  • 80: E501 line too long (82 > 79 characters)

@kellerza kellerza mentioned this pull request Aug 26, 2016
@@ -1,14 +1,34 @@
"""The tests for the ASUSWRT device tracker platform."""

# pylint: disable=invalid-name
Copy link
Member

Choose a reason for hiding this comment

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

What are we disabling exactly? If possible can you move the pylint disable to the specific line(s), because if it's here at the top of the file it will apply to everything in it.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@Teagan42
Copy link
Contributor

Move the pylint then 🐬

from homeassistant.util import Throttle
import homeassistant.helpers.config_validation as cv
from homeassistant.components.device_tracker import PLATFORM_SCHEMA
Copy link
Member

Choose a reason for hiding this comment

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

Can be merged with from homeassistant.components.device_tracker import DOMAIN.

@kellerza kellerza merged commit 6f1c97b into home-assistant:dev Aug 27, 2016
@kellerza kellerza deleted the asus branch August 27, 2016 20:30
@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.

5 participants
0