dreautall / ha-stromnetzgraz

Home Assistant Custom Component for Stromnetz Graz
MIT License
15 stars 1 forks source link

Fix insert statistics with ha 2023.2 #1

Closed notz closed 1 year ago

notz commented 1 year ago

At least on HA 2023.2.x the initial statistic import always fails because of the "state_unit_of_measurement" field is not allowed in StatisticMetaData.

I haven't found any documentation for this object to verify this change.

dreautall commented 1 year ago

Thanks, I noticed it was already removed from the dev branch I used for development, but I still needed it on the local installation for it to not fail. Looks like they finally removed it now from production as well!