Danielhiversen / pyTibber

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

Fix issue with querying production #310

Closed tsvehagen closed 1 week ago

tsvehagen commented 1 week ago

The HISTORIC_DATA_DATE query has fields that are only availble in consumption node. That makes the get_historic_data_date call fail if production=True. Fix by supporting dynamic fields in query and set accordingly depending on production parameter.