Revert new unit types (#53226)
This commit is contained in:
parent
b4a50f5459
commit
a56485a8c5
16 changed files with 153 additions and 235 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue