-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration uses deprecated constants #47
Comments
I get this as well. This integration is broken and will no longer work. Logs follow:
|
I wrote a PR to fix this #50 |
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.
The text was updated successfully, but these errors were encountered: