-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Check login with an info call #90
Conversation
Sometimes a v1 login call can report succes while actually not beeing autorized to get info, v2 login does work in that case. See: home-assistant/core#59025 as an example. This will check the V1 login call with a get_info call, if that fails, v2 login is automatically tried.
@MatMaul could you merge this PR? |
Hi there ! I am thinking about making v2 login the default and make v1 the fallback instead of the reverse, to match the behavior of the node.js version, which seems to behave better, cf #62 (comment) I think this would also solve your trouble. |
@starkillerOG could you try #93 please ? I don't own any Netgear devices with stock firmware anymore (OpenWRT :) ). I am also looking for a maintainer if you are interested ;) . |
@MatMaul thanks for your response! I am currently in contact with Netgear and discussing the HomeAssistant integration. I schould know within a few weeks if Netgear is willing to cooperate. |
Great to hear :) let me know, since I can't test I am waiting your test before merging. |
This is tested and ready to be merged. |
@MatMaul could you merge this and release a new version? |
Any news on this @starkillerOG ? It would be awesome if Netgear is providing official API documentation. |
Still in contact with them, hopping around between departments of Netgear, but they are not to quick to answer. |
@starkillerOG 2 small comments, and indeed I'll cut a release after merging that. Thanks for your work and tests. |
@MatMaul I made the 2 small changes, could you look at it again? |
LGTM, thanks ! |
@starkillerOG I have released Thanks ! |
@starkillerOG you also have been added as a contributor to this repo. Please send me your pypi login and I'll take care to put you there too so you can do a release, if you don't mind. |
Thank you that is very helpfull. Do you want me to give you a few days to revieuw before I merge code I wrote myself or can I just merge emediatly if I made changes that I have tested myself? |
Thanks, I will make a HomeAssistant PR now. |
I propose that we both do it through PRs with a mention to the other, and if no answer in 3/4 days we just merge. Works for you? |
Sounds good to me 👍 |
HA PR has already been merged and will be included in 2021.12.4 which will probably be released in a few days. |
@MatMaul @balloob I just figured out during an attempt to upload the new pynetgear version 0.9.0 that I don't actually have been added to the pypi maintainers list.... I get this when I try to upload:
Could one of you at me to the maintainters list so I can finish the upload? |
Sometimes a v1 login call can report succes while actually not beeing autorized to get info, v2 login does work in that case.
See: home-assistant/core#59025 as an example.
This will check the V1 login call with a get_info call, if that fails, v2 login is automatically tried.