pawkakol1 / worlds-air-quality-index

HACS World's Air Quality Index integration from waqi.info
43 stars 12 forks source link

Log warnings about deprecated constants since Core 2024.1 #52

Closed henrikbla closed 8 months ago

henrikbla commented 8 months ago

SSIA. The following errors occur in the log:

2024-01-03 22:16:40.113 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from worlds_air_quality_index, 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/pawkakol1/worlds-air-quality-index/issues 2024-01-03 22:16:40.124 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from worlds_air_quality_index, 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/pawkakol1/worlds-air-quality-index/issues 2024-01-03 22:16:40.131 WARNING (MainThread) [homeassistant.const] PRESSURE_HPA was used from worlds_air_quality_index, 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/pawkakol1/worlds-air-quality-index/issues 2024-01-03 22:16:40.138 WARNING (MainThread) [homeassistant.const] SPEED_METERS_PER_SECOND was used from worlds_air_quality_index, 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/pawkakol1/worlds-air-quality-index/issues 2024-01-03 22:16:40.146 WARNING (MainThread) [homeassistant.const] LENGTH_MILLIMETERS was used from worlds_air_quality_index, 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/pawkakol1/worlds-air-quality-index/issues 2024-01-03 22:16:40.508 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from worlds_air_quality_index, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please create a bug report at https://github.com/pawkakol1/worlds-air-quality-index/issues 2024-01-03 22:16:40.515 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from worlds_air_quality_index, 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/pawkakol1/worlds-air-quality-index/issues 2024-01-03 22:16:40.736 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from worlds_air_quality_index, 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/pawkakol1/worlds-air-quality-index/issues 2024-01-03 22:16:40.746 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from worlds_air_quality_index, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please create a bug report at https://github.com/pawkakol1/worlds-air-quality-index/issues

bakerkj commented 8 months ago

@pawkakol1 & @henrikbla I pushed a possible PR that I believe addresses this issue #53.

pawkakol1 commented 8 months ago

@bakerkj & @henrikbla I merged the changes, and I released new https://github.com/pawkakol1/worlds-air-quality-index/releases/tag/v1.1.0 version

bakerkj commented 8 months ago

Thanks @pawkakol1!