jesserockz / ha-leafspy

A Home Assistant integration to receive live data sent from the LeafSpy app
MIT License
24 stars 8 forks source link

Latest update and HA 2024.8.x #26

Closed caitotheonlypotato closed 4 weeks ago

caitotheonlypotato commented 1 month ago

Hi.

I've been absolutely thrilled with the features this component brings to HA for the Leaf, and it's worked flawlessly up until the last update .

Essentially, I updated to OS13.0, HA 2024.8.1 and the latest version of this component to get around the upcoming deprecations.

On restart of the system, Leafspy component no longer works. The app can't communicate with the server.

When I revert to my last installed version 0.2.1 of Leafspy component, it starts to work again

On the latest version I see this on the phone in the car image

I see the following error logs in HA image

If you need some further input, please let me know

wtadler commented 1 month ago

I can't test right now, but I think that this line needs to be changed from async_dispatcher_send(DOMAIN, hass, context, message) to async_dispatcher_send(hass, DOMAIN, context, message). My bad for not testing completely before issuing the release.

Do you want to try making this change in your local version of /homeassistant/custom_components/leafspy/__init__.py, restart HA, test, and if it works, open a PR?

caitotheonlypotato commented 1 month ago

I can't test right now, but I think that this line needs to be changed from async_dispatcher_send(DOMAIN, hass, context, message) to async_dispatcher_send(hass, DOMAIN, context, message). My bad for not testing completely before issuing the release.

Do you want to try making this change in your local version of /homeassistant/custom_components/leafspy/__init__.py, restart HA, test, and if it works, open a PR?

Hi.

I'll give it a go

caitotheonlypotato commented 1 month ago

OK, making the change does fix the error, however no data makes its way to the sensor or the attributes thereof.

wtadler commented 4 weeks ago

Sorry about this. Can you try updating to 0.2.4 and see if that fixes it?

caitotheonlypotato commented 4 weeks ago

Sorry about this. Can you try updating to 0.2.4 and see if that fixes it?

Hi. This update brings the functionality back to normal, many thanks. One note is that the version number reported back to HA is still 0.2.3 in [Settings / Integrations ]

image

whereas in [ HACS / Integrations ], downloaded version shows 0.2.4

image

Super Grateful! Many Thank!