Closed B-Hartley closed 12 months ago
Not a "proper fix" But I've done this to make it work bv changing spaclient.py
#from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT
from homeassistant.const import UnitOfTemperature
#from homeassistant.util.temperature import convert as convert_temperature
from homeassistant.util.unit_conversion import TemperatureConverter
#temp = round(convert_temperature(temp, TEMP_FAHRENHEIT, TEMP_CELSIUS) * 2)
temp = round(TemperatureConverter.convert(
temp, UnitOfTemperature.FAHRENHEIT, UnitOfTemperature.CELSIUS
) * 2)
@B-Hartley, thanks for that warning...
For UnitOfTemperature
, I will adjust shortly...
For convert_temperature
warning, sounds like you run a very old Spa Client version? This was fixed last December in v2.6... with your help!?
Spa Client v2.8 has just been released to resolve this obsolescence problem.
If you find other anomalies, don't hesitate!
A big thank you @B-Hartley
Hi,
Running 2023.11.0b1 on OS 11.1
Suspect problems due to: https://developers.home-assistant.io/blog/2022/09/28/deprecate-conversion-utilities/
Needs changing to: homeassistant/util/unit_conversion: TemperatureConverter