mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Feature/izone temperature precision (#37669)
* Change to precision tenths for current temp
This commit is contained in:
parent
0bfcd8c2ab
commit
4ef581622d
@ -26,6 +26,7 @@ from homeassistant.const import (
|
|||||||
ATTR_TEMPERATURE,
|
ATTR_TEMPERATURE,
|
||||||
CONF_EXCLUDE,
|
CONF_EXCLUDE,
|
||||||
PRECISION_HALVES,
|
PRECISION_HALVES,
|
||||||
|
PRECISION_TENTHS,
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
)
|
)
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
@ -250,7 +251,7 @@ class ControllerDevice(ClimateEntity):
|
|||||||
@property
|
@property
|
||||||
def precision(self) -> float:
|
def precision(self) -> float:
|
||||||
"""Return the precision of the system."""
|
"""Return the precision of the system."""
|
||||||
return PRECISION_HALVES
|
return PRECISION_TENTHS
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def device_state_attributes(self):
|
||||||
@ -266,7 +267,7 @@ class ControllerDevice(ClimateEntity):
|
|||||||
self.hass,
|
self.hass,
|
||||||
self._controller.temp_setpoint,
|
self._controller.temp_setpoint,
|
||||||
self.temperature_unit,
|
self.temperature_unit,
|
||||||
self.precision,
|
PRECISION_HALVES,
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -494,7 +495,7 @@ class ZoneDevice(ClimateEntity):
|
|||||||
@property
|
@property
|
||||||
def precision(self):
|
def precision(self):
|
||||||
"""Return the precision of the system."""
|
"""Return the precision of the system."""
|
||||||
return PRECISION_HALVES
|
return PRECISION_TENTHS
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hvac_mode(self):
|
def hvac_mode(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user