Closed BenWoodford closed 5 years ago
Hi @BenWoodford,
Might be caused by attempted fix for #9. Can you add pycarwings2: debug
to config:
section in HomeAssistant to turn on logging of what exactly the Nissan servers are returning please?
Thanks, Phil
The response JSON is already there 😜
HI Ben,
I'm a doofus, I see it now. Thanks.
Phil
On Fri, 11 Jan 2019 at 22:19, Ben Woodford notifications@github.com wrote:
The response JSON is already there 😜
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/filcole/pycarwings2/issues/10#issuecomment-453675433, or mute the thread https://github.com/notifications/unsubscribe-auth/AFy_vlLoC7mqZ_v_uGAmjPiJpwLZXlq5ks5vCQ4IgaJpZM4Z74Xk .
-- Phil
Hi @BenWoodford. I've release pycarwings2 version 2.4 which should fix this issue. See commit https://github.com/filcole/pycarwings2/commit/71204d1aaea52a191bbb4df210535cd4353bf350
Much obliged, was annoying opening up Home on my phone and finding that it thought Climate Control was already on
Seems to be another weird response (or lack of parsing by Python?) in the climate control response.
Here's the payload back from Nissan:
I don't see why that would cause
length
to not work. It should be processing it as JSON. Might be best to put a try/catch around that and just assume climate control is off if it errors.