mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix precision of climate devices in devolo Home Control (#41832)
This commit is contained in:
parent
9b145a78d9
commit
c211275091
@ -9,7 +9,7 @@ from homeassistant.components.climate import (
|
||||
ClimateEntity,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import PRECISION_HALVES
|
||||
from homeassistant.const import PRECISION_HALVES, PRECISION_TENTHS
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
|
||||
from .const import DOMAIN
|
||||
@ -60,9 +60,14 @@ class DevoloClimateDeviceEntity(DevoloMultiLevelSwitchDeviceEntity, ClimateEntit
|
||||
|
||||
@property
|
||||
def target_temperature(self) -> Optional[float]:
|
||||
"""Return the current temperature."""
|
||||
"""Return the target temperature."""
|
||||
return self._value
|
||||
|
||||
@property
|
||||
def target_temperature_step(self) -> float:
|
||||
"""Return the precision of the target temperature."""
|
||||
return PRECISION_HALVES
|
||||
|
||||
@property
|
||||
def hvac_mode(self) -> str:
|
||||
"""Return the supported HVAC mode."""
|
||||
@ -86,7 +91,7 @@ class DevoloClimateDeviceEntity(DevoloMultiLevelSwitchDeviceEntity, ClimateEntit
|
||||
@property
|
||||
def precision(self) -> float:
|
||||
"""Return the precision of the set temperature."""
|
||||
return PRECISION_HALVES
|
||||
return PRECISION_TENTHS
|
||||
|
||||
@property
|
||||
def supported_features(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user