Remove tuya/climate precision property override (#44148)

This commit is contained in:
ollo69 2021-01-26 22:49:42 +01:00 committed by GitHub
parent 74a44e03fa
commit 08e7247201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,8 +23,6 @@ from homeassistant.const import (
ATTR_TEMPERATURE,
CONF_PLATFORM,
CONF_UNIT_OF_MEASUREMENT,
PRECISION_TENTHS,
PRECISION_WHOLE,
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
)
@ -154,13 +152,6 @@ class TuyaClimateEntity(TuyaDevice, ClimateEntity):
self.operations.append(ha_mode)
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
def temperature_unit(self):
"""Return the unit of measurement used by the platform."""