mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix unit conversion for Sensibo A/C units (#10692)
* Fix unit conversion for Sensibo A/C units When the Sensibo component was released, there was a provision to not convert the temperature units unless "nativeTemperatureUnit" was returned with the API. I'm not sure if the API changed on Sensibo's side, but I do not get this key passed back with API requests. This causes my current temperature to be returned in CELSIUS instead of FAHRENHEIT. Removing this fixes it, and I can confirm the units are shown properly now. * Update adding comment showing temperature is always in C
This commit is contained in:
parent
8a750eba68
commit
9c77f5f5a9
@ -133,10 +133,8 @@ class SensiboClimate(ClimateDevice):
|
||||
@property
|
||||
def current_temperature(self):
|
||||
"""Return the current temperature."""
|
||||
# This field is not affected by temperature_unit.
|
||||
# It is always in C / nativeTemperatureUnit
|
||||
if 'nativeTemperatureUnit' not in self._ac_states:
|
||||
return self._measurements['temperature']
|
||||
# This field is not affected by temperatureUnit.
|
||||
# It is always in C
|
||||
return convert_temperature(
|
||||
self._measurements['temperature'],
|
||||
TEMP_CELSIUS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user