FL550 / dwd_weather

Deutscher Wetterdienst integration for Home-Assistant
MIT License
188 stars 12 forks source link

Deprecated constants which will be removed in HA Core 2025.1 #115

Closed elcajon closed 9 months ago

elcajon commented 9 months ago

Version of home_assistant

2024.1.0b2

Version of the custom_component

v2.0.13

Describe the bug

With the latest beta for the upcoming release, the source for the constants will apparently be changed. The following warnings appear in the log.

Debug log

2023-12-29 14:34:31.277 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_HUMIDITY was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.HUMIDITY instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:31.278 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_PRESSURE was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.PRESSURE instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:31.279 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_TEMPERATURE was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.TEMPERATURE instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:31.280 WARNING (MainThread) [homeassistant.const] LENGTH_KILOMETERS was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.KILOMETERS instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:31.280 WARNING (MainThread) [homeassistant.const] PRESSURE_HPA was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPressure.HPA instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:31.281 WARNING (MainThread) [homeassistant.const] SPEED_KILOMETERS_PER_HOUR was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.KILOMETERS_PER_HOUR instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:31.282 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:31.282 WARNING (MainThread) [homeassistant.const] TIME_SECONDS was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTime.SECONDS instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:31.283 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from dwd_weather, 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/FL550/dwd_weather/issues
2023-12-29 14:34:31.284 WARNING (MainThread) [homeassistant.components.sensor] STATE_CLASS_MEASUREMENT was used from dwd_weather, 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/FL550/dwd_weather/issues
2023-12-29 14:34:32.113 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:32.114 WARNING (MainThread) [homeassistant.const] PRESSURE_HPA was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPressure.HPA instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:32.114 WARNING (MainThread) [homeassistant.const] SPEED_KILOMETERS_PER_HOUR was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.KILOMETERS_PER_HOUR instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:32.115 WARNING (MainThread) [homeassistant.const] LENGTH_KILOMETERS was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.KILOMETERS instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
2023-12-29 14:34:32.116 WARNING (MainThread) [homeassistant.const] LENGTH_MILLIMETERS was used from dwd_weather, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.MILLIMETERS instead, please create a bug report at https://github.com/FL550/dwd_weather/issues
FL550 commented 9 months ago

Thanks for reporting!