Package Name: Home Assistant Core
Package Version: 2021.8.8
NAS Model: DS216Play
NAS Architecture: STM Monaco STiH412
DSM version: 7.0.1-42218
Expected behavior
Because HACS didn't show the HomeWizard Energy (Wifi P1 meter and kWh meter), I installed it manually as a Custom Component. The device is visible in the Integrations part as"P1 meter HomeWizard Energy", but can't be used; there are no devices attached to it.
ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homewizard_energy.sensor: Platform not found (cannot import name 'STATE_CLASS_TOTAL_INCREASING' from 'homeassistant.components.sensor' (/volume1/@appstore/homeassistant/env/lib/python3.8/site-packages/homeassistant/components/sensor/init.py)).
Can you confirm that the said Home Assistant update fixes this issue? And if so, can you tell when is an update expected?
Other possible solutions are of course also welcome.
Thank you.
Setup
Package Name: Home Assistant Core Package Version: 2021.8.8
NAS Model: DS216Play NAS Architecture: STM Monaco STiH412 DSM version: 7.0.1-42218
Expected behavior
Because HACS didn't show the HomeWizard Energy (Wifi P1 meter and kWh meter), I installed it manually as a Custom Component. The device is visible in the Integrations part as"P1 meter HomeWizard Energy", but can't be used; there are no devices attached to it.
Actual behavior
Home Assistant shows an error.
Steps to reproduce
1. Install the component as described here: https://github.com/DCSBL/ha-homewizard-energy 2. Restart Home Assistant
Package log
ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homewizard_energy.sensor: Platform not found (cannot import name 'STATE_CLASS_TOTAL_INCREASING' from 'homeassistant.components.sensor' (/volume1/@appstore/homeassistant/env/lib/python3.8/site-packages/homeassistant/components/sensor/init.py)).
More info
A solution is mentioned on https://community.home-assistant.io/t/custom-component-homewizard-energy-wifi-p1-meter-and-kwh-meter/227441/290 . Sept, 9, 2021: I think you have to update Home Assistant to 2021.9 or higher. STATE_CLASS_TOTAL_INCREASING is something new that came with that version.
Questions
Can you confirm that the said Home Assistant update fixes this issue? And if so, can you tell when is an update expected? Other possible solutions are of course also welcome. Thank you.