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

Fix Edimax new firmware auth error and move to pyedimax fork #12873

Merged
merged 5 commits into from
Mar 4, 2018

Conversation

andreipop2005
Copy link
Contributor

@andreipop2005 andreipop2005 commented Mar 3, 2018

Description:

This fixes the authentication error for Edimax switches. I solved it a while ago, the fix is trivial, but the original repository is no longer maintained. I forked it and fixed the issue, then changed the requirements for home assistant.

Related issue (if applicable): fixes #9339

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>

Checklist:

  • [ x] The code change is tested and works locally.

If user exposed functionality or configuration variables are added/changed:

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 the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@homeassistant
Copy link
Contributor

Hi @andreipop2005,

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!

Copy link
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

If you have tried to ask to original package maintainer to update the package and publish to pypi, but the maintainer is unresponsive for a resonable waiting period, it's ok to make a fork and publish that on pypi under a different name.

@@ -13,8 +13,8 @@
CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_USERNAME)
import homeassistant.helpers.config_validation as cv

REQUIREMENTS = ['https://github.com/rkabadi/pyedimax/archive/'
'365301ce3ff26129a7910c501ead09ea625f3700.zip#pyedimax==0.1']
REQUIREMENTS = ['https://github.com/andreipop2005/pyedimax/archive/'
Copy link
Member

Choose a reason for hiding this comment

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

Home assistant requirements need to be published to pypi since a while.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Original package maintainer did not respond to comments/messages/etc since August last year, although I really tried to make my fix pulled, but no response.

I will publish the change to pypi.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@MartinHjelmare
Copy link
Member

Did you run script/gen_requirements_all.py? The linter thinks requirements_all.txt is not up to date.

@andreipop2005
Copy link
Contributor Author

All should be ok now.

@@ -129,6 +129,9 @@ py-canary==0.4.1
# homeassistant.components.zwave
pydispatcher==2.0.5

# homeassistant.components.switch.edimax
pyedimax==0.1
Copy link
Member

Choose a reason for hiding this comment

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

This should not be added to this file as there are no tests for this platform.

@@ -66,6 +66,7 @@
'pushbullet.py',
'py-canary',
'pydispatcher',
'pyedimax',
Copy link
Member

Choose a reason for hiding this comment

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

Remove this.

@andreipop2005
Copy link
Contributor Author

Done

Copy link
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Thanks!

@MartinHjelmare MartinHjelmare changed the title Fixed Edimax switch authentication error for newer firmware. Fix Edimax new firmware auth error and move to pyedimax fork Mar 4, 2018
@MartinHjelmare MartinHjelmare merged commit 81ba666 into home-assistant:dev Mar 4, 2018
@balloob balloob mentioned this pull request Mar 9, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Jul 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

edimax SmartPlug Python execption
4 participants