Skip to content

Conversation

@tnstar
Copy link

@tnstar tnstar commented Jun 18, 2017

W215_A2 have different device id mapping than the default, so this fixes the W215_V2 issue.
However, this is still not smart enough to detect the model number and automatically apply the fix.
We need to set use_legacy_protocol to True during SmartPlug init.

except:
self.model_name = 'Unknown'
else:
self.model_name = self.SOAPAction("", "ModelName", "")
Copy link
Owner

Choose a reason for hiding this comment

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

Could we change this to

self.model_name = self.SOAPAction(Action="", responseElement="ModelName", params = "")

As suggested in the PR from @clach04. It is much more readable.

Copy link
Contributor

Choose a reason for hiding this comment

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

#18 is now merged

@LinuxChristian
Copy link
Owner

Thanks for the PR!

Your work looks solid but it is really difficult to review a Christmas tree commit. I am guessing you use some auto pep8 plug-in? Would you mind turning it of and resubmit it as two commits (One with the core changes and one with style changes).

I have no problem with pep8 commits as it makes the code more readable but it becomes very difficult to see style and function if everything is in a single commit.

Then I will be happy to merge your improvements.

@clach04
Copy link
Contributor

clach04 commented Jun 22, 2017

I agree, it would be great to get a pep8 change and then a separate change for W215_v2 FW1.24. I'd recommend two different pull requests.

@tnstar
Copy link
Author

tnstar commented Jun 22, 2017

Ok, I will do pep8 first and then the fix.

@LinuxChristian
Copy link
Owner

bump... Commit #25 does the same?

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.

3 participants