frodeheg / no.sparegris

Saves money by adjusting when to use electricity
GNU General Public License v3.0
11 stars 4 forks source link

Prices are not updated on reschedule charging #329

Closed frodeheg closed 6 months ago

frodeheg commented 7 months ago

this.chargePlan.actualPrices = [...await this.homey.app.getPricePrediction(now, endTimeUTC)];

is not updated when calling newRescheduleCharging

frodeheg commented 6 months ago

Prices are always fetched before rescheduleCharging is called from the app newRescheduleCharging function. Any prices that are missing will be fetched in the next hour.

Prices are also fetched before rescheduleCharging in the device onInit now

frodeheg commented 6 months ago

This was fixed as part of an earlier commit: https://github.com/frodeheg/no.sparegris/commit/ed1ce2d95a17a9f8cf0756e7587c4231f535187b