Closed wralb closed 7 months ago
Thanks for reporting this, I've changed that method to catch errors in the calculation and default to returning 0 in v0.4.3. Please let me know if you see this sort of thing again!
Thanks! Tested: issue is gone after installing v0.4.3.
What happened? Monthly Efficiency and Daily Efficiency may be marked 'Unavailable' and a division by zero error logged when the car has not been driven during the day. This is generally notice when restarting Home Assistant before the vehicle has been used on the day.
To Reproduce
Expected behavior
Log Output
Home Assistant Version 2024.2.5 in python 3.12 venv on Ubuntu VM on Xen Orchestra
Integration Version 0.4.2
Additional context Vehicle is Nissan Ariya