Revert new unit types (#53226)

This commit is contained in:
Marc Mueller 2021-07-20 14:13:51 +02:00 committed by GitHub
parent b4a50f5459
commit a56485a8c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 153 additions and 235 deletions

View file

@ -25,7 +25,6 @@ from homeassistant.const import (
ATTR_TEMPERATURE,
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
UnitTemperatureT,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import DeviceInfo
@ -122,7 +121,7 @@ class BSBLanClimate(ClimateEntity):
return self._info.device_identification
@property
def temperature_unit(self) -> UnitTemperatureT:
def temperature_unit(self) -> str:
"""Return the unit of measurement which this thermostat uses."""
if self._temperature_unit == "°C":
return TEMP_CELSIUS