From bd399d17a78e9fb8029737135a52cc3091ac6c97 Mon Sep 17 00:00:00 2001 From: SgtBatten Date: Mon, 28 Jun 2021 05:13:26 +1000 Subject: [PATCH] Add support for 4th fan speed in izone A/C systems (#51969) * Add TOP fan speed My a/c is 4 speed and the top speed is reported as top or boost. i.e it supports: low med high boost auto * add support for top fan speed Aircons with 4 fan speeds. i.e low, med, high, top/boost * Update manifest.json Bump version to 1.1.5 * Update climate.py * Bump Izone to 1.1.5 * Update climate.py * fix isort failure * Use v1.1.6 Co-authored-by: Penny Wood Co-authored-by: Swamp-Ig --- homeassistant/components/climate/const.py | 1 + homeassistant/components/izone/climate.py | 2 ++ homeassistant/components/izone/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/climate/const.py b/homeassistant/components/climate/const.py index af6c9364b18..55387d71438 100644 --- a/homeassistant/components/climate/const.py +++ b/homeassistant/components/climate/const.py @@ -63,6 +63,7 @@ FAN_AUTO = "auto" FAN_LOW = "low" FAN_MEDIUM = "medium" FAN_HIGH = "high" +FAN_TOP = "top" FAN_MIDDLE = "middle" FAN_FOCUS = "focus" FAN_DIFFUSE = "diffuse" diff --git a/homeassistant/components/izone/climate.py b/homeassistant/components/izone/climate.py index 253bdc6cb2b..968f13748b2 100644 --- a/homeassistant/components/izone/climate.py +++ b/homeassistant/components/izone/climate.py @@ -12,6 +12,7 @@ from homeassistant.components.climate.const import ( FAN_HIGH, FAN_LOW, FAN_MEDIUM, + FAN_TOP, HVAC_MODE_COOL, HVAC_MODE_DRY, HVAC_MODE_FAN_ONLY, @@ -54,6 +55,7 @@ _IZONE_FAN_TO_HA = { Controller.Fan.LOW: FAN_LOW, Controller.Fan.MED: FAN_MEDIUM, Controller.Fan.HIGH: FAN_HIGH, + Controller.Fan.TOP: FAN_TOP, Controller.Fan.AUTO: FAN_AUTO, } diff --git a/homeassistant/components/izone/manifest.json b/homeassistant/components/izone/manifest.json index 0a2b8f82fe5..6da770f5c0b 100644 --- a/homeassistant/components/izone/manifest.json +++ b/homeassistant/components/izone/manifest.json @@ -2,7 +2,7 @@ "domain": "izone", "name": "iZone", "documentation": "https://www.home-assistant.io/integrations/izone", - "requirements": ["python-izone==1.1.4"], + "requirements": ["python-izone==1.1.6"], "codeowners": ["@Swamp-Ig"], "config_flow": true, "homekit": { diff --git a/requirements_all.txt b/requirements_all.txt index c261d2b478d..92e2151b737 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1833,7 +1833,7 @@ python-gitlab==1.6.0 python-hpilo==4.3 # homeassistant.components.izone -python-izone==1.1.4 +python-izone==1.1.6 # homeassistant.components.joaoapps_join python-join-api==0.0.6 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index cc9b9ac9736..5128a8ab41d 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1015,7 +1015,7 @@ python-ecobee-api==0.2.11 python-forecastio==1.4.0 # homeassistant.components.izone -python-izone==1.1.4 +python-izone==1.1.6 # homeassistant.components.juicenet python-juicenet==1.0.2