Danielhiversen / pyTibber

Async Python 3 library for Tibber
GNU General Public License v3.0
91 stars 31 forks source link

Found less data than requested #263

Closed martin3000 closed 1 year ago

martin3000 commented 1 year ago

From tibber_home.get_historic_data I get the warning "Found less data than requested". I tried to understand the code, but I don't understand the role of "max_n_data = max_n_data // 10" in the loop. It starts with 5000, then 500, 50, 5 and 0. Also, the API returns the hierarchy viewer->homes->comsumption and not viewer->home->consumption, but maybe this is due to the fact that this integration uses the old API.

Danielhiversen commented 1 year ago

How much data did you request? (value of n_data) How much was returned?

What do you mean by old API?

martin3000 commented 1 year ago

Sorry I forgot to mention that I use home assistant and home assistant uses pyTibber. I don't know how much data was requested.

Danielhiversen commented 1 year ago

Ok, it is only a warning. This code is changed in the next release of the library.