Set zwave_js climate precision to tenths for F (#48133)

pull/48147/head
Thiago Oliveira 2021-03-19 17:20:09 -07:00 committed by GitHub
parent 098c53e8b5
commit 26bceae99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -41,7 +41,12 @@ from homeassistant.components.climate.const import (
SUPPORT_TARGET_TEMPERATURE_RANGE,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS, TEMP_FAHRENHEIT
from homeassistant.const import (
ATTR_TEMPERATURE,
PRECISION_TENTHS,
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
@ -228,6 +233,11 @@ 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) -> str:
"""Return hvac operation ie. heat, cool mode."""