nickknissen / hass-monta

Monta Home Assistant custom component
MIT License
26 stars 4 forks source link

Handle API errors gracefully #126

Closed fbjerggaard closed 4 weeks ago

fbjerggaard commented 1 month ago

This PR handles API errors gracefully so the integration actually loads instead of crashing.

Fixes #125

I made the change in the two places that returns a sorted list since that is what broke.

nickknissen commented 4 weeks ago

Thank you for the fix!

michaeltryl commented 4 weeks ago

I miss something. Where is the fix?

nickknissen commented 4 weeks ago

@michaeltryl The fix fbjerggaard implemented is published in version 1.4.2.

It fallsback to a empty data set when charges or transaction from the API call cannot be fetched.