mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Update aioairzone-cloud to v0.6.14 (#148820)
This commit is contained in:
parent
849a25e3cc
commit
828f0f8b26
@ -6,5 +6,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/airzone_cloud",
|
"documentation": "https://www.home-assistant.io/integrations/airzone_cloud",
|
||||||
"iot_class": "cloud_push",
|
"iot_class": "cloud_push",
|
||||||
"loggers": ["aioairzone_cloud"],
|
"loggers": ["aioairzone_cloud"],
|
||||||
"requirements": ["aioairzone-cloud==0.6.13"]
|
"requirements": ["aioairzone-cloud==0.6.14"]
|
||||||
}
|
}
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -179,7 +179,7 @@ aioacaia==0.1.14
|
|||||||
aioairq==0.4.6
|
aioairq==0.4.6
|
||||||
|
|
||||||
# homeassistant.components.airzone_cloud
|
# homeassistant.components.airzone_cloud
|
||||||
aioairzone-cloud==0.6.13
|
aioairzone-cloud==0.6.14
|
||||||
|
|
||||||
# homeassistant.components.airzone
|
# homeassistant.components.airzone
|
||||||
aioairzone==1.0.0
|
aioairzone==1.0.0
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -167,7 +167,7 @@ aioacaia==0.1.14
|
|||||||
aioairq==0.4.6
|
aioairq==0.4.6
|
||||||
|
|
||||||
# homeassistant.components.airzone_cloud
|
# homeassistant.components.airzone_cloud
|
||||||
aioairzone-cloud==0.6.13
|
aioairzone-cloud==0.6.14
|
||||||
|
|
||||||
# homeassistant.components.airzone
|
# homeassistant.components.airzone
|
||||||
aioairzone==1.0.0
|
aioairzone==1.0.0
|
||||||
|
@ -210,10 +210,35 @@
|
|||||||
'ws-connected': True,
|
'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({
|
'groups': dict({
|
||||||
'group1': dict({
|
'group1': dict({
|
||||||
'action': 1,
|
'action': 1,
|
||||||
'active': True,
|
'active': True,
|
||||||
|
'air-quality': list([
|
||||||
|
'airqsensor1',
|
||||||
|
]),
|
||||||
'available': True,
|
'available': True,
|
||||||
'hot-water': list([
|
'hot-water': list([
|
||||||
'dhw1',
|
'dhw1',
|
||||||
@ -332,6 +357,9 @@
|
|||||||
'aidoo1',
|
'aidoo1',
|
||||||
'aidoo_pro',
|
'aidoo_pro',
|
||||||
]),
|
]),
|
||||||
|
'air-quality': list([
|
||||||
|
'airqsensor1',
|
||||||
|
]),
|
||||||
'available': True,
|
'available': True,
|
||||||
'groups': list([
|
'groups': list([
|
||||||
'group1',
|
'group1',
|
||||||
@ -377,6 +405,7 @@
|
|||||||
}),
|
}),
|
||||||
'systems': dict({
|
'systems': dict({
|
||||||
'system1': dict({
|
'system1': dict({
|
||||||
|
'aq-active': False,
|
||||||
'aq-index': 1,
|
'aq-index': 1,
|
||||||
'aq-pm-1': 3,
|
'aq-pm-1': 3,
|
||||||
'aq-pm-10': 3,
|
'aq-pm-10': 3,
|
||||||
@ -463,6 +492,7 @@
|
|||||||
'action': 1,
|
'action': 1,
|
||||||
'active': True,
|
'active': True,
|
||||||
'air-demand': True,
|
'air-demand': True,
|
||||||
|
'air-quality-id': 'airqsensor1',
|
||||||
'aq-active': False,
|
'aq-active': False,
|
||||||
'aq-index': 1,
|
'aq-index': 1,
|
||||||
'aq-mode-conf': 'auto',
|
'aq-mode-conf': 'auto',
|
||||||
@ -528,19 +558,12 @@
|
|||||||
'action': 6,
|
'action': 6,
|
||||||
'active': False,
|
'active': False,
|
||||||
'air-demand': False,
|
'air-demand': False,
|
||||||
'aq-active': False,
|
|
||||||
'aq-index': 1,
|
|
||||||
'aq-mode-conf': 'auto',
|
'aq-mode-conf': 'auto',
|
||||||
'aq-mode-values': list([
|
'aq-mode-values': list([
|
||||||
'off',
|
'off',
|
||||||
'on',
|
'on',
|
||||||
'auto',
|
'auto',
|
||||||
]),
|
]),
|
||||||
'aq-pm-1': 3,
|
|
||||||
'aq-pm-10': 3,
|
|
||||||
'aq-pm-2.5': 4,
|
|
||||||
'aq-present': True,
|
|
||||||
'aq-status': 'good',
|
|
||||||
'available': True,
|
'available': True,
|
||||||
'double-set-point': False,
|
'double-set-point': False,
|
||||||
'floor-demand': False,
|
'floor-demand': False,
|
||||||
|
@ -45,7 +45,7 @@ async def test_airzone_create_binary_sensors(hass: HomeAssistant) -> None:
|
|||||||
assert state.state == STATE_OFF
|
assert state.state == STATE_OFF
|
||||||
|
|
||||||
state = hass.states.get("binary_sensor.dormitorio_air_quality_active")
|
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")
|
state = hass.states.get("binary_sensor.dormitorio_battery")
|
||||||
assert state.state == STATE_OFF
|
assert state.state == STATE_OFF
|
||||||
|
@ -59,19 +59,19 @@ async def test_airzone_create_sensors(hass: HomeAssistant) -> None:
|
|||||||
|
|
||||||
# Zones
|
# Zones
|
||||||
state = hass.states.get("sensor.dormitorio_air_quality_index")
|
state = hass.states.get("sensor.dormitorio_air_quality_index")
|
||||||
assert state.state == "1"
|
assert state is None
|
||||||
|
|
||||||
state = hass.states.get("sensor.dormitorio_battery")
|
state = hass.states.get("sensor.dormitorio_battery")
|
||||||
assert state.state == "54"
|
assert state.state == "54"
|
||||||
|
|
||||||
state = hass.states.get("sensor.dormitorio_pm1")
|
state = hass.states.get("sensor.dormitorio_pm1")
|
||||||
assert state.state == "3"
|
assert state is None
|
||||||
|
|
||||||
state = hass.states.get("sensor.dormitorio_pm2_5")
|
state = hass.states.get("sensor.dormitorio_pm2_5")
|
||||||
assert state.state == "4"
|
assert state is None
|
||||||
|
|
||||||
state = hass.states.get("sensor.dormitorio_pm10")
|
state = hass.states.get("sensor.dormitorio_pm10")
|
||||||
assert state.state == "3"
|
assert state is None
|
||||||
|
|
||||||
state = hass.states.get("sensor.dormitorio_signal_percentage")
|
state = hass.states.get("sensor.dormitorio_signal_percentage")
|
||||||
assert state.state == "76"
|
assert state.state == "76"
|
||||||
@ -82,7 +82,7 @@ async def test_airzone_create_sensors(hass: HomeAssistant) -> None:
|
|||||||
state = hass.states.get("sensor.dormitorio_humidity")
|
state = hass.states.get("sensor.dormitorio_humidity")
|
||||||
assert state.state == "24"
|
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"
|
assert state.state == "1"
|
||||||
|
|
||||||
state = hass.states.get("sensor.salon_pm1")
|
state = hass.states.get("sensor.salon_pm1")
|
||||||
|
@ -19,6 +19,7 @@ from aioairzone_cloud.const import (
|
|||||||
API_AZ_ACS,
|
API_AZ_ACS,
|
||||||
API_AZ_AIDOO,
|
API_AZ_AIDOO,
|
||||||
API_AZ_AIDOO_PRO,
|
API_AZ_AIDOO_PRO,
|
||||||
|
API_AZ_AIRQSENSOR,
|
||||||
API_AZ_SYSTEM,
|
API_AZ_SYSTEM,
|
||||||
API_AZ_ZONE,
|
API_AZ_ZONE,
|
||||||
API_CELSIUS,
|
API_CELSIUS,
|
||||||
@ -170,6 +171,17 @@ GET_INSTALLATION_MOCK = {
|
|||||||
},
|
},
|
||||||
API_WS_ID: WS_ID,
|
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":
|
if device.get_id() == "system1":
|
||||||
return {
|
return {
|
||||||
API_AQ_MODE_VALUES: ["off", "on", "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_ERRORS: [
|
API_ERRORS: [
|
||||||
{
|
{
|
||||||
API_OLD_ID: "error-id",
|
API_OLD_ID: "error-id",
|
||||||
@ -419,14 +426,8 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
|
|||||||
return {
|
return {
|
||||||
API_ACTIVE: True,
|
API_ACTIVE: True,
|
||||||
API_AIR_ACTIVE: True,
|
API_AIR_ACTIVE: True,
|
||||||
API_AQ_ACTIVE: False,
|
|
||||||
API_AQ_MODE_CONF: "auto",
|
API_AQ_MODE_CONF: "auto",
|
||||||
API_AQ_MODE_VALUES: ["off", "on", "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_DOUBLE_SET_POINT: False,
|
||||||
API_HUMIDITY: 30,
|
API_HUMIDITY: 30,
|
||||||
API_MODE: OperationMode.COOLING.value,
|
API_MODE: OperationMode.COOLING.value,
|
||||||
@ -466,14 +467,8 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
|
|||||||
return {
|
return {
|
||||||
API_ACTIVE: False,
|
API_ACTIVE: False,
|
||||||
API_AIR_ACTIVE: False,
|
API_AIR_ACTIVE: False,
|
||||||
API_AQ_ACTIVE: False,
|
|
||||||
API_AQ_MODE_CONF: "auto",
|
API_AQ_MODE_CONF: "auto",
|
||||||
API_AQ_MODE_VALUES: ["off", "on", "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_DOUBLE_SET_POINT: False,
|
||||||
API_HUMIDITY: 24,
|
API_HUMIDITY: 24,
|
||||||
API_MODE: OperationMode.COOLING.value,
|
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_LOCAL_TEMP: {API_FAH: 77, API_CELSIUS: 25},
|
||||||
API_WARNINGS: [],
|
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 {}
|
return {}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user