Add new climate enums

This commit is contained in:
epenet
2022-09-09 06:51:52 +00:00
parent a9aaa08a1c
commit dcd7716106

View File

@@ -43,8 +43,8 @@ HVAC_MODE_FAN_ONLY = "fan_only"
HVAC_MODES = [cls.value for cls in HVACMode] HVAC_MODES = [cls.value for cls in HVACMode]
class Preset(StrEnum): class PresetMode(StrEnum):
"""Preset for climate devices.""" """Preset mode for climate devices."""
# No preset is active # No preset is active
NONE = "none" NONE = "none"
@@ -72,7 +72,7 @@ class Preset(StrEnum):
# These PRESET_* constants are deprecated as of Home Assistant 2022.10. # These PRESET_* constants are deprecated as of Home Assistant 2022.10.
# Please use the Preset enum instead. # Please use the PresetMode enum instead.
PRESET_NONE = "none" PRESET_NONE = "none"
PRESET_ECO = "eco" PRESET_ECO = "eco"
PRESET_AWAY = "away" PRESET_AWAY = "away"
@@ -83,8 +83,8 @@ PRESET_SLEEP = "sleep"
PRESET_ACTIVITY = "activity" PRESET_ACTIVITY = "activity"
class FanState(StrEnum): class FanMode(StrEnum):
"""Fan state for climate devices.""" """Fan mode for climate devices."""
ON = "on" ON = "on"
OFF = "off" OFF = "off"
@@ -99,7 +99,7 @@ class FanState(StrEnum):
# These FAN_* constants are deprecated as of Home Assistant 2022.10. # These FAN_* constants are deprecated as of Home Assistant 2022.10.
# Please use the Preset enum instead. # Please use the FanMode enum instead.
FAN_ON = "on" FAN_ON = "on"
FAN_OFF = "off" FAN_OFF = "off"
FAN_AUTO = "auto" FAN_AUTO = "auto"
@@ -112,8 +112,8 @@ FAN_FOCUS = "focus"
FAN_DIFFUSE = "diffuse" FAN_DIFFUSE = "diffuse"
class SwingState(StrEnum): class SwingMode(StrEnum):
"""Swing state for climate devices.""" """Swing mode for climate devices."""
ON = "on" ON = "on"
OFF = "off" OFF = "off"
@@ -123,7 +123,7 @@ class SwingState(StrEnum):
# These SWING_* constants are deprecated as of Home Assistant 2022.10. # These SWING_* constants are deprecated as of Home Assistant 2022.10.
# Please use the Preset enum instead. # Please use the SwingMode enum instead.
SWING_ON = "on" SWING_ON = "on"
SWING_OFF = "off" SWING_OFF = "off"
SWING_BOTH = "both" SWING_BOTH = "both"