Limych / ha-iaquk

Indoor Air Quality Sensor Component for Home Assistant
MIT License
105 stars 15 forks source link

Replace deprecated constants #138

Closed jd1 closed 6 months ago

jd1 commented 7 months ago

Checklist

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

Home assistants print this entry in the logs

STATE_CLASS_MEASUREMENT was used from iaquk, 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/Limych/ha-iaquk/issues

TEMP_CELSIUS was used from iaquk, 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-iaquk/issues

TEMP_FAHRENHEIT was used from iaquk, 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/Limych/ha-iaquk/issues

Describe the solution you'd like

Use SensorStateClass.MEASUREMENT, UnitOfTemperature.CELSIUS, UnitOfTemperature.FAHRENHEIT

Describe alternatives you've considered

There are no alternatives. If the constants are removed, the integration will fail.

Additional context

-