Use _attr_precision in entities (#77477)
This commit is contained in:
parent
d4c020b675
commit
e19e65908a
12 changed files with 14 additions and 73 deletions
|
@ -126,6 +126,8 @@ async def async_setup_entry(
|
|||
class ZWaveClimate(ZWaveBaseEntity, ClimateEntity):
|
||||
"""Representation of a Z-Wave climate."""
|
||||
|
||||
_attr_precision = PRECISION_TENTHS
|
||||
|
||||
def __init__(
|
||||
self, config_entry: ConfigEntry, driver: Driver, info: ZwaveDiscoveryInfo
|
||||
) -> None:
|
||||
|
@ -251,11 +253,6 @@ class ZWaveClimate(ZWaveBaseEntity, ClimateEntity):
|
|||
return TEMP_FAHRENHEIT
|
||||
return TEMP_CELSIUS
|
||||
|
||||
@property
|
||||
def precision(self) -> float:
|
||||
"""Return the precision of 0.1."""
|
||||
return PRECISION_TENTHS
|
||||
|
||||
@property
|
||||
def hvac_mode(self) -> HVACMode:
|
||||
"""Return hvac operation ie. heat, cool mode."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue