cyprieng / gazpar-home-assistant

Retrieve Gazpar consumption in home assistant
32 stars 9 forks source link

Log error #6

Closed pbranly closed 3 years ago

pbranly commented 3 years ago

Hi, I also have a lot of errors that seem and come from gazpar

Logger: custom_components.gazpar.sensor Source: custom_components/gazpar/sensor.py:119 Integration: gazpar First occurred: 13:55:42 (1 occurrences) Last logged: 13:55:42

Failed to query Gazpar library with exception : Traceback (most recent call last): File "/config/custom_components/gazpar/sensor.py", line 96, in update_gazpar_data data = [d for d in data if File "/config/custom_components/gazpar/sensor.py", line 97, in datetime.strptime(d['time'], '%d/%m/%Y') >= datetime.now().replace(day=1, hour=0, minute=0, File "/usr/local/lib/python3.8/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/usr/local/lib/python3.8/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '01/2021' does not match format '%d/%m/%Y' Regards Philippe

cinaxx commented 3 years ago

Hello I have the same issue and the same logs too

Regards /Jordan

cinaxx commented 3 years ago

Up this morning! yesterday when i logged in there was no data so i think the problem was here /Jordan