You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my situation, the data retrieved using _get_daily_consumption from the python-veolia-api appears to be reversed. When I fetch data from the website, I receive:
In the VeoliaDailyUsageSensor class, you are retrieving data with the last value of the array: state = self.coordinator.data[DAILY][-1]. However, in my case, the last value represents the first consumption day of the month, not the last one.
As a workaround, I am using: state = self.coordinator.data[DAILY][0]
Is this a general behavior who need a PR, or something specific to my account?
The text was updated successfully, but these errors were encountered:
Hi,
In my situation, the data retrieved using
_get_daily_consumption
from the python-veolia-api appears to be reversed. When I fetch data from the website, I receive:The corresponding array is:
[91, 107, 143, 73, 107, 114, 173, 92, 83, 220, 180, 165, 236, 88, 82, 122, 105, 142, 217, 158, 86, 111, 72, 108, 140, 171]
In the VeoliaDailyUsageSensor class, you are retrieving data with the last value of the array:
state = self.coordinator.data[DAILY][-1]
. However, in my case, the last value represents the first consumption day of the month, not the last one.As a workaround, I am using:
state = self.coordinator.data[DAILY][0]
Is this a general behavior who need a PR, or something specific to my account?
The text was updated successfully, but these errors were encountered: