mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Remove tuya/climate precision property override (#44148)
This commit is contained in:
parent
74a44e03fa
commit
08e7247201
@ -23,8 +23,6 @@ from homeassistant.const import (
|
|||||||
ATTR_TEMPERATURE,
|
ATTR_TEMPERATURE,
|
||||||
CONF_PLATFORM,
|
CONF_PLATFORM,
|
||||||
CONF_UNIT_OF_MEASUREMENT,
|
CONF_UNIT_OF_MEASUREMENT,
|
||||||
PRECISION_TENTHS,
|
|
||||||
PRECISION_WHOLE,
|
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
TEMP_FAHRENHEIT,
|
TEMP_FAHRENHEIT,
|
||||||
)
|
)
|
||||||
@ -154,13 +152,6 @@ class TuyaClimateEntity(TuyaDevice, ClimateEntity):
|
|||||||
self.operations.append(ha_mode)
|
self.operations.append(ha_mode)
|
||||||
self._has_operation = True
|
self._has_operation = True
|
||||||
|
|
||||||
@property
|
|
||||||
def precision(self):
|
|
||||||
"""Return the precision of the system."""
|
|
||||||
if self._tuya.has_decimal():
|
|
||||||
return PRECISION_TENTHS
|
|
||||||
return PRECISION_WHOLE
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def temperature_unit(self):
|
def temperature_unit(self):
|
||||||
"""Return the unit of measurement used by the platform."""
|
"""Return the unit of measurement used by the platform."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user