-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
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
Voluptuous for AsusWRT #2998
Conversation
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 80: E501 line too long (82 > 79 characters)
@@ -1,14 +1,34 @@ | |||
"""The tests for the ASUSWRT device tracker platform.""" | |||
|
|||
# pylint: disable=invalid-name |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Move the pylint then 🐬 |
from homeassistant.util import Throttle | ||
import homeassistant.helpers.config_validation as cv | ||
from homeassistant.components.device_tracker import PLATFORM_SCHEMA |
There was a problem hiding this comment.
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
.
Description:
Add Voluptuous for Asus WRT
Example entry for
configuration.yaml
(if applicable):Checklist:
If code communicates with devices, web services, or a:
tox
run successfully. Your PR cannot be merged unless tests pass