From 5dd63d86f26bbb570240b64eec6bccb25e8c5d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Thu, 28 Dec 2023 17:14:25 +0100 Subject: [PATCH] Update aioairzone-cloud to v0.3.7 (#106544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Release v0.3.7 Signed-off-by: Álvaro Fernández Rojas --- .../components/airzone_cloud/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- .../snapshots/test_diagnostics.ambr | 32 +++++++++++++++++++ tests/components/airzone_cloud/util.py | 30 +++++++++++++++++ 5 files changed, 65 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/airzone_cloud/manifest.json b/homeassistant/components/airzone_cloud/manifest.json index ab8e08835a3..e10669d6a93 100644 --- a/homeassistant/components/airzone_cloud/manifest.json +++ b/homeassistant/components/airzone_cloud/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://www.home-assistant.io/integrations/airzone_cloud", "iot_class": "cloud_polling", "loggers": ["aioairzone_cloud"], - "requirements": ["aioairzone-cloud==0.3.6"] + "requirements": ["aioairzone-cloud==0.3.7"] } diff --git a/requirements_all.txt b/requirements_all.txt index c2ba8cccf52..97f8fed9848 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -188,7 +188,7 @@ aio-georss-gdacs==0.8 aioairq==0.3.2 # homeassistant.components.airzone_cloud -aioairzone-cloud==0.3.6 +aioairzone-cloud==0.3.7 # homeassistant.components.airzone aioairzone==0.7.2 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 1171fbf1970..8a51d44cf29 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -167,7 +167,7 @@ aio-georss-gdacs==0.8 aioairq==0.3.2 # homeassistant.components.airzone_cloud -aioairzone-cloud==0.3.6 +aioairzone-cloud==0.3.7 # homeassistant.components.airzone aioairzone==0.7.2 diff --git a/tests/components/airzone_cloud/snapshots/test_diagnostics.ambr b/tests/components/airzone_cloud/snapshots/test_diagnostics.ambr index 4a7217a08c5..d1a8d74cc08 100644 --- a/tests/components/airzone_cloud/snapshots/test_diagnostics.ambr +++ b/tests/components/airzone_cloud/snapshots/test_diagnostics.ambr @@ -324,6 +324,12 @@ }), 'systems': dict({ 'system1': dict({ + 'aq-index': 1, + 'aq-pm-1': 3, + 'aq-pm-10': 3, + 'aq-pm-2.5': 4, + 'aq-present': True, + 'aq-status': 'good', 'available': True, 'errors': list([ dict({ @@ -398,6 +404,19 @@ 'zone1': dict({ 'action': 1, 'active': True, + 'aq-active': False, + 'aq-index': 1, + 'aq-mode-conf': 'auto', + 'aq-mode-values': list([ + 'off', + 'on', + 'auto', + ]), + 'aq-pm-1': 3, + 'aq-pm-10': 3, + 'aq-pm-2.5': 4, + 'aq-present': True, + 'aq-status': 'good', 'available': True, 'humidity': 30, 'id': 'zone1', @@ -445,6 +464,19 @@ 'zone2': dict({ 'action': 6, 'active': False, + 'aq-active': False, + 'aq-index': 1, + 'aq-mode-conf': 'auto', + 'aq-mode-values': list([ + 'off', + 'on', + 'auto', + ]), + 'aq-pm-1': 3, + 'aq-pm-10': 3, + 'aq-pm-2.5': 4, + 'aq-present': True, + 'aq-status': 'good', 'available': True, 'humidity': 24, 'id': 'zone2', diff --git a/tests/components/airzone_cloud/util.py b/tests/components/airzone_cloud/util.py index 6924344a092..98ff7c65478 100644 --- a/tests/components/airzone_cloud/util.py +++ b/tests/components/airzone_cloud/util.py @@ -6,6 +6,14 @@ from unittest.mock import patch from aioairzone_cloud.common import OperationMode from aioairzone_cloud.const import ( API_ACTIVE, + API_AQ_ACTIVE, + API_AQ_MODE_CONF, + API_AQ_MODE_VALUES, + API_AQ_PM_1, + API_AQ_PM_2P5, + API_AQ_PM_10, + API_AQ_PRESENT, + API_AQ_QUALITY, API_AZ_AIDOO, API_AZ_AIDOO_PRO, API_AZ_SYSTEM, @@ -291,6 +299,12 @@ def mock_get_device_status(device: Device) -> dict[str, Any]: } if device.get_id() == "system1": return { + API_AQ_MODE_VALUES: ["off", "on", "auto"], + API_AQ_PM_1: 3, + API_AQ_PM_2P5: 4, + API_AQ_PM_10: 3, + API_AQ_PRESENT: True, + API_AQ_QUALITY: "good", API_ERRORS: [ { API_OLD_ID: "error-id", @@ -310,6 +324,14 @@ def mock_get_device_status(device: Device) -> dict[str, Any]: if device.get_id() == "zone1": return { API_ACTIVE: True, + API_AQ_ACTIVE: False, + API_AQ_MODE_CONF: "auto", + API_AQ_MODE_VALUES: ["off", "on", "auto"], + API_AQ_PM_1: 3, + API_AQ_PM_2P5: 4, + API_AQ_PM_10: 3, + API_AQ_PRESENT: True, + API_AQ_QUALITY: "good", API_HUMIDITY: 30, API_MODE: OperationMode.COOLING.value, API_MODE_AVAIL: [ @@ -346,6 +368,14 @@ def mock_get_device_status(device: Device) -> dict[str, Any]: if device.get_id() == "zone2": return { API_ACTIVE: False, + API_AQ_ACTIVE: False, + API_AQ_MODE_CONF: "auto", + API_AQ_MODE_VALUES: ["off", "on", "auto"], + API_AQ_PM_1: 3, + API_AQ_PM_2P5: 4, + API_AQ_PM_10: 3, + API_AQ_PRESENT: True, + API_AQ_QUALITY: "good", API_HUMIDITY: 24, API_MODE: OperationMode.COOLING.value, API_MODE_AVAIL: [],