Skip to content

Commit

Permalink
107655: Set max an min temp for flexit_bacnet climate entity
Browse files Browse the repository at this point in the history
  • Loading branch information
lellky committed Jan 9, 2024
1 parent 5d25958 commit f5ac0e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions homeassistant/components/flexit_bacnet/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

from .const import (
DOMAIN,
MAX_TEMP,
MIN_TEMP,
PRESET_TO_VENTILATION_MODE_MAP,
VENTILATION_TO_PRESET_MODE_MAP,
)
Expand Down Expand Up @@ -67,6 +69,8 @@ class FlexitClimateEntity(ClimateEntity):

_attr_target_temperature_step = PRECISION_HALVES
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_attr_max_temp = MAX_TEMP
_attr_min_temp = MIN_TEMP

def __init__(self, device: FlexitBACnet) -> None:
"""Initialize the unit."""
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/flexit_bacnet/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

DOMAIN = "flexit_bacnet"

MAX_TEMP = 30
MIN_TEMP = 10

VENTILATION_TO_PRESET_MODE_MAP = {
VENTILATION_MODE_STOP: PRESET_NONE,
VENTILATION_MODE_AWAY: PRESET_AWAY,
Expand Down

0 comments on commit f5ac0e4

Please sign in to comment.