Limych / ha-gismeteo

Gismeteo Weather Provider for Home Assistant
Other
124 stars 24 forks source link

2024.1 warnings in Log (deprecated constants) #181

Closed ildar170975 closed 6 months ago

ildar170975 commented 10 months ago

Checklist

Is your feature request related to a problem? Please describe.

Cannot register a bug. Since reporting about the issue here as a "Feature request".

2024.1. log contains these warnings:

2024-01-04 02:04:23.266 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_HUMIDITY was used from gismeteo, 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/Limych/ha-gismeteo/issues 2024-01-04 02:04:23.269 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_PRESSURE was used from gismeteo, 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/Limych/ha-gismeteo/issues 2024-01-04 02:04:23.273 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_TEMPERATURE was used from gismeteo, 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/Limych/ha-gismeteo/issues 2024-01-04 02:04:23.278 WARNING (MainThread) [homeassistant.const] LENGTH_MILLIMETERS was used from gismeteo, 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/Limych/ha-gismeteo/issues 2024-01-04 02:04:23.281 WARNING (MainThread) [homeassistant.const] PRESSURE_HPA was used from gismeteo, 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/Limych/ha-gismeteo/issues 2024-01-04 02:04:23.286 WARNING (MainThread) [homeassistant.const] SPEED_METERS_PER_SECOND was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.METERS_PER_SECOND instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues 2024-01-04 02:04:23.289 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from gismeteo, 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/Limych/ha-gismeteo/issues 2024-01-04 02:04:23.920 WARNING (MainThread) [homeassistant.const] PRESSURE_MMHG was used from gismeteo, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPressure.MMHG instead, please create a bug report at https://github.com/Limych/ha-gismeteo/issues 2024-01-04 02:04:23.930 WARNING (MainThread) [homeassistant.const] SPEED_KILOMETERS_PER_HOUR was used from gismeteo, 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/Limych/ha-gismeteo/issues 2024-01-04 02:04:23.945 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from gismeteo, 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/Limych/ha-gismeteo/issues

Describe the solution you'd like

none

Describe alternatives you've considered

none

Additional context

none

EvgenyBash commented 10 months ago

The custom integration gismeteo implements the forecast property or sets self._attr_forecast in a subclass of WeatherEntity.