-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
BT Home Hub 5 device tracker support #2250
Conversation
dirty_json = root.find('known_device_list').get('value') | ||
|
||
# Normalise the JavaScript data to JSON. | ||
clean_json = unquote(dirty_json.replace('\'', '\"').replace('{', '{\"').replace(':\"', '\":\"').replace('\",', '\",\"')) |
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 (128 > 79 characters)
The code seems fine. You will need to clean it up to adhere to linting standards. See the instructions above in the PR message. |
Please follow the checklist in your own PR message. Still some steps left. |
@balloob home-assistant/home-assistant.io#558 - all should be in order 🎱 |
Please add your file to |
@balloob why would I need to add to the omissions? I've added a test, and coveralls is passing. |
New components are not allowed to reduce test coverage or else they should def get_scanner(hass, config): On Mon, Jun 13, 2016 at 9:21 AM, Lewis Juggins [email protected]
PaulusSchoutsen.nl |
Fair enough, squashed and omitted the component. When I get some time I'll improve test coverage for the component. |
Alrighty, looks bueno 🐬 🚀 |
Description:
Support for the BT Home Hub 5 for tracking devices.
Looking for feedback as this is my first component addition to the project, I'll add the documentation PR before (if) this is merged.
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#558
Example entry for
configuration.yaml
(if applicable):Checklist:
If user exposed functionality or configuration variables are added/changed:
If code communicates with devices:
tox
run successfully. Your PR cannot be merged unless tests pass