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

device_tracker.ubus: Handle empty results #7673

Merged

Conversation

tobygray
Copy link
Contributor

Description:

If OpenWRT isn't running the DHCP server then some OpenWRT hardware,
such as TP-Link TL-WDR3600 v1, can't determine the host
corresponding to an associated wifi client. This change handles that
by returning None when the request has no data in the result.

Related issue (if applicable): fixes #7672

Pull request in home-assistant.github.io with documentation (if applicable): No documentation changes required

Example entry for configuration.yaml (if applicable):

No configuration changes required

Checklist:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable ([example][ex-requir]).
  • New dependencies are only imported inside functions that use them ([example][ex-import]).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If OpenWRT isn't running the DHCP server then some OpenWRT hardware,
such as TP-Link TL-WDR3600 v1, can't determine the host
corresponding to an associated wifi client. This change handles that
by returning None when the request has no data in the result.
@homeassistant
Copy link
Contributor

Hi @tobygray,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@balloob balloob added this to the 0.45.1 milestone May 22, 2017
@balloob balloob merged commit ca3f07c into home-assistant:dev May 22, 2017
@balloob
Copy link
Member

balloob commented May 22, 2017

Thanks!

balloob pushed a commit that referenced this pull request May 22, 2017
If OpenWRT isn't running the DHCP server then some OpenWRT hardware,
such as TP-Link TL-WDR3600 v1, can't determine the host
corresponding to an associated wifi client. This change handles that
by returning None when the request has no data in the result.
@balloob balloob mentioned this pull request May 22, 2017
@tobygray tobygray deleted the device_tracker_ubus_fix_empty_hostname branch May 27, 2017 15:39
tobygray added a commit to tobygray/home-assistant that referenced this pull request May 27, 2017
This reverts the file permission changes introduced in:
* home-assistant#7673
* home-assistant#7675
@balloob balloob mentioned this pull request Jun 2, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Sep 4, 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.

device_tracker.ubus doesn't work with some TP-Link TL-WDR3600 v1 configurations
3 participants