ardevd / jlrpy

Python library for interacting with the JLR Remote Car API
MIT License
84 stars 29 forks source link

correct url in get_user_info function #118

Closed msp1974 closed 7 months ago

msp1974 commented 7 months ago

Hey,

The user_info endpoint now only supports passing the email address and not the user id. This PR corrects that.

NOTE: I am using Ruff as linter, formatter etc and it seems to have made a ton of formatting changes - so sorry this is quite a messy PR. The only code that has actually changed is the get_user_info function, so if you wanted to just take that bit.

NOTE2: I can work around this for HA dev branch as it is exactly the same a calling _login_user(self.head), so not an urgent one.

KR Mark

ardevd commented 7 months ago

If you could refactor this PR to only include the updated URL without all the formatting "fixes" I'd be happy to merge.

msp1974 commented 7 months ago

Ok, cancel this one then and I will submit a new one. Thx