From 7a3ca8278da686202ab4dd4303929a07e5dff7b9 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 9 Sep 2022 16:42:01 +0200 Subject: [PATCH] Expose climate constants at the top level (#78018) * Expose climate constants at the top level * Add new climate enums * Add new climate enums * Import new enums * Adjust ClimateEntity * Adjust pylint * Fix mypy * Revert "Fix mypy" This reverts commit 3dbe2fab01e30091ab51bcd090ae5ddc5c807045. * Revert "Adjust pylint" This reverts commit b19b085b2281e1cb42b814f4dbe8838d1b6db7b2. * Revert "Adjust ClimateEntity" This reverts commit 6a822c58f1b6bb997038eeb750030ddf13872ec2. * Revert "Import new enums" This reverts commit 7d70007c60d6a4156466c9aad428b8583a8b70bd. * Revert "Add new climate enums" This reverts commit dcd7716106e66449255f807b0e1467912ed3ed11. * Revert "Add new climate enums" This reverts commit a9aaa08a1cb5e6376e0f2d082d0809301cf68d7a. --- homeassistant/components/climate/__init__.py | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/homeassistant/components/climate/__init__.py b/homeassistant/components/climate/__init__.py index 818caaaa78d..0f3e5666bc6 100644 --- a/homeassistant/components/climate/__init__.py +++ b/homeassistant/components/climate/__init__.py @@ -55,11 +55,29 @@ from .const import ( # noqa: F401 ATTR_TARGET_TEMP_LOW, ATTR_TARGET_TEMP_STEP, DOMAIN, + FAN_AUTO, + FAN_DIFFUSE, + FAN_FOCUS, + FAN_HIGH, + FAN_LOW, + FAN_MEDIUM, + FAN_MIDDLE, + FAN_OFF, + FAN_ON, + FAN_TOP, HVAC_MODE_COOL, HVAC_MODE_HEAT, HVAC_MODE_HEAT_COOL, HVAC_MODE_OFF, HVAC_MODES, + PRESET_ACTIVITY, + PRESET_AWAY, + PRESET_BOOST, + PRESET_COMFORT, + PRESET_ECO, + PRESET_HOME, + PRESET_NONE, + PRESET_SLEEP, SERVICE_SET_AUX_HEAT, SERVICE_SET_FAN_MODE, SERVICE_SET_HUMIDITY, @@ -74,6 +92,11 @@ from .const import ( # noqa: F401 SUPPORT_TARGET_HUMIDITY, SUPPORT_TARGET_TEMPERATURE, SUPPORT_TARGET_TEMPERATURE_RANGE, + SWING_BOTH, + SWING_HORIZONTAL, + SWING_OFF, + SWING_ON, + SWING_VERTICAL, ClimateEntityFeature, HVACAction, HVACMode,