briis / weatherbit

The weatherbit integration adds support for the weatherbit.io web service as a source for meteorological data for your location.
MIT License
33 stars 7 forks source link

Deprecation warning in Logs after 2022.10 upgrade for temperature utility #78

Closed Landshark77 closed 2 years ago

Landshark77 commented 2 years ago

Getting the following warnings in logs after upgrading to 2022.10. Running v1.0.13 of weatherbit.

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 8:59:55 AM (2 occurrences)
Last logged: 8:59:55 AM

Detected integration that uses temperature utility. This is deprecated since 2022.10 and will stop working in Home Assistant 2022.4, it should be updated to use unit_conversion.TemperatureConverter instead. Please report issue to the custom integration author for weatherbit using this method at custom_components/weatherbit/sensor.py, line 494: else celsius_to_fahrenheit(self.day_data.max_temp)
Detected integration that uses temperature utility. This is deprecated since 2022.10 and will stop working in Home Assistant 2022.4, it should be updated to use unit_conversion.TemperatureConverter instead. Please report issue to the custom integration author for weatherbit using this method at custom_components/weatherbit/sensor.py, line 499: else celsius_to_fahrenheit(self.day_data.min_temp)
briis commented 2 years ago

Thanks for reporting. I will get it fixed.