dotKrad / hass-fpl

FPL Component for Home Assistant
MIT License
41 stars 20 forks source link

Integration uses deprecated constants #47

Open PHolstein1 opened 9 months ago

PHolstein1 commented 9 months ago

Version of the custom_component

Latest version baa8ade

Configuration

Loads default set of integrations. Do not remove.

default_config:

Load frontend themes from the themes folder

frontend: themes: !include_dir_merge_named themes

automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml

Example configuration.yaml entry

logger:

Add your logs here.

2024-02-03 11:22:26.109 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-02-03 11:22:26.110 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration fpl which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-02-03 11:22:46.173 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400) 2024-02-03 11:22:52.434 ERROR (MainThread) [custom_components.fpl] 'electric' 2024-02-03 11:22:54.161 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.174 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.186 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.198 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.209 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.219 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.234 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.244 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.255 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.264 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.275 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_MONETARY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.MONETARY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.288 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.299 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.312 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.322 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.336 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.347 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.357 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.367 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.777 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.fpl_7338839256_daily_usage_kwh (<class 'custom_components.fpl.sensor_DailyUsageSensor.FplDailyUsageKWHSensor'>) with state_class total_increasing has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured, otherwise create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:55.028 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_a61a70_ltr390_ambient_light (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 2024-02-03 11:22:55.040 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_a61a70_ltr390_uv_index (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'UVI' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 2024-02-03 11:22:55.087 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_6ba798_ltr390_ambient_light (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 2024-02-03 11:22:55.106 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_6ba798_ltr390_uv_index (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'UVI' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 2024-02-03 11:22:55.131 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_a5556c_ltr390_ambient_light (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 2024-02-03 11:22:55.142 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_a5556c_ltr390_uv_index (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'UVI' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22

Describe the bug

The log shows multiple warnings about deprecated constants used by the FPL custom integration, such as STATE_CLASS_TOTAL_INCREASING, STATE_CLASS_MEASUREMENT, DEVICE_CLASS_ENERGY, and others. These need to be updated to the new constants as mentioned in the warnings (e.g., SensorStateClass.TOTAL_INCREASING, SensorDeviceClass.ENERGY).

Debug log

2024-02-03 11:22:26.109 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-02-03 11:22:26.110 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration fpl which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-02-03 11:22:46.173 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400) 2024-02-03 11:22:52.434 ERROR (MainThread) [custom_components.fpl] 'electric' 2024-02-03 11:22:54.161 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.174 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.186 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.198 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.209 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.219 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.234 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.244 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.255 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.264 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.275 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_MONETARY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.MONETARY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.288 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.299 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.312 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.322 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.336 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.347 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.357 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.367 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:54.777 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.fpl_7338839256_daily_usage_kwh (<class 'custom_components.fpl.sensor_DailyUsageSensor.FplDailyUsageKWHSensor'>) with state_class total_increasing has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured, otherwise create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-03 11:22:55.028 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_a61a70_ltr390_ambient_light (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 2024-02-03 11:22:55.040 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_a61a70_ltr390_uv_index (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'UVI' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 2024-02-03 11:22:55.087 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_6ba798_ltr390_ambient_light (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 2024-02-03 11:22:55.106 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_6ba798_ltr390_uv_index (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'UVI' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 2024-02-03 11:22:55.131 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_a5556c_ltr390_ambient_light (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '#' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 2024-02-03 11:22:55.142 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.apollo_msr_1_a5556c_ltr390_uv_index (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'UVI' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22

Add your logs here.

mattbratt commented 8 months ago

I get this as well. This integration is broken and will no longer work. Logs follow:

2024-02-22 11:06:19.538 ERROR (MainThread) [custom_components.fpl] Error fetching fpl data: 2024-02-22 11:06:19.960 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.964 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.966 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.968 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.971 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.973 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.978 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.981 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.984 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.986 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.989 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_MONETARY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.MONETARY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.995 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-22 11:06:19.997 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-22 11:06:20.002 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-22 11:06:20.005 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-22 11:06:20.013 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-22 11:06:20.016 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues 2024-02-22 11:06:20.018 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_TOTAL_INCREASING was used from fpl, 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/dotKrad/hass-fpl/issues 2024-02-22 11:06:20.020 WARNING (MainThread) [homeassistant.components.sensor] DEVICE_CLASS_ENERGY was used from fpl, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/dotKrad/hass-fpl/issues

tekHudson commented 7 months ago

I wrote a PR to fix this #50