Skip to content

0.1.8

Choose a tag to compare

@dmoo500 dmoo500 released this 18 Apr 13:57

0.1.8

Bug Fix

Fix — positive energy spike on last rewound day was never corrected

Versions 0.1.5–0.1.7 rewound last_import to import_date (e.g. April 17) on restart, but the fetcher computes from_date = last_import + 1 — so it started fetching from April 18, never touching April 17. The bad statistics for April 17 that were written during earlier buggy runs were therefore never overwritten.

Fix: last_import is now set to import_date - 1 (April 16), so the fetcher correctly starts from import_date (April 17) and overwrites the incorrect DB entries. The sum offset query boundary is also adjusted accordingly (midnight CEST of import_date).

If you see a positive spike on the day before today after restart: update to 0.1.8 and reload the integration — HA will overwrite the incorrect entries automatically.