hass-powerpal icon indicating copy to clipboard operation
hass-powerpal copied to clipboard

Deprecated Constants Warning Message

Open kaizersoje opened this issue 1 year ago • 1 comments
trafficstars

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

kaizersoje avatar Mar 15 '24 02:03 kaizersoje

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

mindmelting avatar Apr 05 '24 21:04 mindmelting