mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Set max and min temp for flexit_bacnet climate entity (#107665)
107655: Set max and min temp for flexit_bacnet climate entity
This commit is contained in:
parent
8d5cdfaf36
commit
668fc442e9
@ -27,6 +27,8 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
|||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
|
MAX_TEMP,
|
||||||
|
MIN_TEMP,
|
||||||
PRESET_TO_VENTILATION_MODE_MAP,
|
PRESET_TO_VENTILATION_MODE_MAP,
|
||||||
VENTILATION_TO_PRESET_MODE_MAP,
|
VENTILATION_TO_PRESET_MODE_MAP,
|
||||||
)
|
)
|
||||||
@ -67,6 +69,8 @@ class FlexitClimateEntity(ClimateEntity):
|
|||||||
|
|
||||||
_attr_target_temperature_step = PRECISION_HALVES
|
_attr_target_temperature_step = PRECISION_HALVES
|
||||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||||
|
_attr_max_temp = MAX_TEMP
|
||||||
|
_attr_min_temp = MIN_TEMP
|
||||||
|
|
||||||
def __init__(self, device: FlexitBACnet) -> None:
|
def __init__(self, device: FlexitBACnet) -> None:
|
||||||
"""Initialize the unit."""
|
"""Initialize the unit."""
|
||||||
|
@ -15,6 +15,9 @@ from homeassistant.components.climate import (
|
|||||||
|
|
||||||
DOMAIN = "flexit_bacnet"
|
DOMAIN = "flexit_bacnet"
|
||||||
|
|
||||||
|
MAX_TEMP = 30
|
||||||
|
MIN_TEMP = 10
|
||||||
|
|
||||||
VENTILATION_TO_PRESET_MODE_MAP = {
|
VENTILATION_TO_PRESET_MODE_MAP = {
|
||||||
VENTILATION_MODE_STOP: PRESET_NONE,
|
VENTILATION_MODE_STOP: PRESET_NONE,
|
||||||
VENTILATION_MODE_AWAY: PRESET_AWAY,
|
VENTILATION_MODE_AWAY: PRESET_AWAY,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user