mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Introduce PRESET_NONE for climate (#25360)
* Introduce PRESET_NONE for climate * Require preset mode to be a string * Lint * Fix tests
This commit is contained in:
@@ -10,7 +10,7 @@ from homematicip.aio.home import AsyncHome
|
||||
from homeassistant.components.climate import ClimateDevice
|
||||
from homeassistant.components.climate.const import (
|
||||
HVAC_MODE_AUTO, HVAC_MODE_HEAT, PRESET_BOOST, PRESET_ECO,
|
||||
SUPPORT_PRESET_MODE, SUPPORT_TARGET_TEMPERATURE)
|
||||
SUPPORT_PRESET_MODE, SUPPORT_TARGET_TEMPERATURE, PRESET_NONE)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS
|
||||
from homeassistant.core import HomeAssistant
|
||||
@@ -121,7 +121,7 @@ class HomematicipHeatingGroup(HomematicipGenericDevice, ClimateDevice):
|
||||
|
||||
Requires SUPPORT_PRESET_MODE.
|
||||
"""
|
||||
return [PRESET_BOOST]
|
||||
return [PRESET_NONE, PRESET_BOOST]
|
||||
|
||||
@property
|
||||
def min_temp(self) -> float:
|
||||
|
||||
Reference in New Issue
Block a user