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

Tplink archer c20 support #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

btomer
Copy link

@btomer btomer commented Feb 11, 2018

Add support for TP-Link Archer C20.
See HomeAssistant PR: home-assistant/core#11827

Copy link
Owner

@ericpignet ericpignet left a comment

Choose a reason for hiding this comment

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

Hi,
Thanks for contributing to this very early version of the external TPLink support library.
I put a bit of context about it in your HA PR home-assistant/core#11827
I was not planning to integrate it to HA in this early version but I guess I will still propose a PR and see if HA maintainers want to integrate it as is or prefer to wait it looks more like a library.

Regarding your contribution, I just have a minor comment. Also please keep in mind code here has the same criticality as in HA, meaning that you need to test thoroughly that it won't impact existing TPLink component users if modem is not found.

Eric

@@ -211,6 +213,53 @@ def _update_info(self):
return False


class TplinkArcherC20DeviceScanner(Tplink2DeviceScanner):
Copy link
Owner

Choose a reason for hiding this comment

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

Any reason you are inheriting from Tplink2DeviceScanner and not TplinkDeviceScanner like the others? Is it to have their version of get_device_name()? As your scanner is completely different from Tplink2, I think it would be cleaner to inherit from base one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants