Update aioairzone-cloud to v0.6.14 (#148820)

This commit is contained in:
Álvaro Fernández Rojas 2025-07-15 22:43:40 +02:00 committed by GitHub
parent 849a25e3cc
commit 828f0f8b26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 64 additions and 33 deletions

View File

@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/airzone_cloud",
"iot_class": "cloud_push",
"loggers": ["aioairzone_cloud"],
"requirements": ["aioairzone-cloud==0.6.13"]
"requirements": ["aioairzone-cloud==0.6.14"]
}

2
requirements_all.txt generated
View File

@ -179,7 +179,7 @@ aioacaia==0.1.14
aioairq==0.4.6
# homeassistant.components.airzone_cloud
aioairzone-cloud==0.6.13
aioairzone-cloud==0.6.14
# homeassistant.components.airzone
aioairzone==1.0.0

View File

@ -167,7 +167,7 @@ aioacaia==0.1.14
aioairq==0.4.6
# homeassistant.components.airzone_cloud
aioairzone-cloud==0.6.13
aioairzone-cloud==0.6.14
# homeassistant.components.airzone
aioairzone==1.0.0

View File

@ -210,10 +210,35 @@
'ws-connected': True,
}),
}),
'air-quality': dict({
'airqsensor1': dict({
'aq-active': False,
'aq-index': 1,
'aq-pm-1': 3,
'aq-pm-10': 3,
'aq-pm-2.5': 4,
'aq-present': True,
'aq-status': 'good',
'available': True,
'double-set-point': False,
'id': 'airqsensor1',
'installation': 'installation1',
'is-connected': True,
'name': 'CapteurQ',
'problems': False,
'system': 1,
'web-server': 'webserver1',
'ws-connected': True,
'zone': 1,
}),
}),
'groups': dict({
'group1': dict({
'action': 1,
'active': True,
'air-quality': list([
'airqsensor1',
]),
'available': True,
'hot-water': list([
'dhw1',
@ -332,6 +357,9 @@
'aidoo1',
'aidoo_pro',
]),
'air-quality': list([
'airqsensor1',
]),
'available': True,
'groups': list([
'group1',
@ -377,6 +405,7 @@
}),
'systems': dict({
'system1': dict({
'aq-active': False,
'aq-index': 1,
'aq-pm-1': 3,
'aq-pm-10': 3,
@ -463,6 +492,7 @@
'action': 1,
'active': True,
'air-demand': True,
'air-quality-id': 'airqsensor1',
'aq-active': False,
'aq-index': 1,
'aq-mode-conf': 'auto',
@ -528,19 +558,12 @@
'action': 6,
'active': False,
'air-demand': 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,
'double-set-point': False,
'floor-demand': False,

View File

@ -45,7 +45,7 @@ async def test_airzone_create_binary_sensors(hass: HomeAssistant) -> None:
assert state.state == STATE_OFF
state = hass.states.get("binary_sensor.dormitorio_air_quality_active")
assert state.state == STATE_OFF
assert state is None
state = hass.states.get("binary_sensor.dormitorio_battery")
assert state.state == STATE_OFF

View File

@ -59,19 +59,19 @@ async def test_airzone_create_sensors(hass: HomeAssistant) -> None:
# Zones
state = hass.states.get("sensor.dormitorio_air_quality_index")
assert state.state == "1"
assert state is None
state = hass.states.get("sensor.dormitorio_battery")
assert state.state == "54"
state = hass.states.get("sensor.dormitorio_pm1")
assert state.state == "3"
assert state is None
state = hass.states.get("sensor.dormitorio_pm2_5")
assert state.state == "4"
assert state is None
state = hass.states.get("sensor.dormitorio_pm10")
assert state.state == "3"
assert state is None
state = hass.states.get("sensor.dormitorio_signal_percentage")
assert state.state == "76"
@ -82,7 +82,7 @@ async def test_airzone_create_sensors(hass: HomeAssistant) -> None:
state = hass.states.get("sensor.dormitorio_humidity")
assert state.state == "24"
state = hass.states.get("sensor.dormitorio_air_quality_index")
state = hass.states.get("sensor.salon_air_quality_index")
assert state.state == "1"
state = hass.states.get("sensor.salon_pm1")

View File

@ -19,6 +19,7 @@ from aioairzone_cloud.const import (
API_AZ_ACS,
API_AZ_AIDOO,
API_AZ_AIDOO_PRO,
API_AZ_AIRQSENSOR,
API_AZ_SYSTEM,
API_AZ_ZONE,
API_CELSIUS,
@ -170,6 +171,17 @@ GET_INSTALLATION_MOCK = {
},
API_WS_ID: WS_ID,
},
{
API_CONFIG: {
API_SYSTEM_NUMBER: 1,
API_ZONE_NUMBER: 1,
},
API_DEVICE_ID: "airqsensor1",
API_NAME: "CapteurQ",
API_TYPE: API_AZ_AIRQSENSOR,
API_META: {},
API_WS_ID: WS_ID,
},
],
},
{
@ -394,11 +406,6 @@ 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",
@ -419,14 +426,8 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
return {
API_ACTIVE: True,
API_AIR_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_DOUBLE_SET_POINT: False,
API_HUMIDITY: 30,
API_MODE: OperationMode.COOLING.value,
@ -466,14 +467,8 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
return {
API_ACTIVE: False,
API_AIR_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_DOUBLE_SET_POINT: False,
API_HUMIDITY: 24,
API_MODE: OperationMode.COOLING.value,
@ -504,6 +499,19 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
API_LOCAL_TEMP: {API_FAH: 77, API_CELSIUS: 25},
API_WARNINGS: [],
}
if device.get_id() == "airqsensor1":
return {
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_IS_CONNECTED: True,
API_WS_CONNECTED: True,
}
return {}