mindmelting / hass-powerpal

Home Assistant custom integration to fetch data from Powerpal
MIT License
44 stars 11 forks source link

Deprecated Constants Warning Message #27

Closed kaizersoje closed 4 months ago

kaizersoje commented 6 months ago

Version of the custom_component 0.3.0

Configuration

The integration is set up through config flow.


Add your logs here.

Describe the bug

A clear and concise description of what the bug is. I see a warning in the logs as below.

Debug log


2024-03-15 12:58:18.491 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from powerpal, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL_INCREASING instead, please create a bug report at https://github.com/mindmelting/hass-powerpal/issues
2024-03-15 12:58:18.505 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from powerpal, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.MEASUREMENT instead, please create a bug report at https://github.com/mindmelting/hass-powerpal/issues
mindmelting commented 5 months ago

This should be fixed in v0.3.1 thanks for raising!