TimSoethout / goodwe-sems-home-assistant

Sensor for Home Assistant pulling data from the GoodWe SEMS API for solar panel production metrics.
89 stars 38 forks source link

Setting last_reset is deprecated and will be unsupported from Home Assistant Core 2021.11 #54

Closed MPowerData closed 3 years ago

MPowerData commented 3 years ago

Hi,

Since the latest upgrade of Home Assistant below warning is showing up in the log.

WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.inverter_gw3600d_ns_energy (<class 'custom_components.sems.sensor.SemsStatisticsSensor'>) with state_class measurement has set last_reset. Setting last_reset is deprecated and will be unsupported from Home Assistant Core 2021.11. Please update your configuration if state_class is manually configured, otherwise report it to the custom component author.

Is this something I can fix?

Or does the integration need an update?

Thanks for your help.

TimSoethout commented 3 years ago

The latest version should not have last_reset anymore. Did you update the component?

MPowerData commented 3 years ago

Hmmm, how do I run the update?

TimSoethout commented 3 years ago

Via HACS? Or copy the files from this repo to your custom_components directory.

MPowerData commented 3 years ago

Thanks, that worked!