Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update aioairzone-cloud to v0.3.6 #103535

Merged
merged 1 commit into from Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/airzone_cloud/manifest.json
Expand Up @@ -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.5"]
"requirements": ["aioairzone-cloud==0.3.6"]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -192,7 +192,7 @@ aio-georss-gdacs==0.8
aioairq==0.2.4

# homeassistant.components.airzone_cloud
aioairzone-cloud==0.3.5
aioairzone-cloud==0.3.6

# homeassistant.components.airzone
aioairzone==0.6.9
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Expand Up @@ -173,7 +173,7 @@ aio-georss-gdacs==0.8
aioairq==0.2.4

# homeassistant.components.airzone_cloud
aioairzone-cloud==0.3.5
aioairzone-cloud==0.3.6

# homeassistant.components.airzone
aioairzone==0.6.9
Expand Down
167 changes: 147 additions & 20 deletions tests/components/airzone_cloud/snapshots/test_diagnostics.ambr
Expand Up @@ -5,10 +5,18 @@
'devices-config': dict({
'device1': dict({
}),
'device2': dict({
}),
'device3': dict({
}),
}),
'devices-status': dict({
'device1': dict({
}),
'device2': dict({
}),
'device3': dict({
}),
}),
'installations': dict({
'installation1': dict({
Expand All @@ -22,11 +30,31 @@
]),
'group_id': 'group1',
}),
dict({
'devices': list([
dict({
'device_id': 'device2',
'ws_id': 'webserver2',
}),
]),
'group_id': 'group2',
}),
dict({
'devices': list([
dict({
'device_id': 'device3',
'ws_id': 'webserver3',
}),
]),
'group_id': 'group3',
}),
]),
'plugins': dict({
'schedules': dict({
'calendar_ws_ids': list([
'webserver1',
'webserver2',
'webserver3',
]),
}),
}),
Expand All @@ -50,6 +78,10 @@
'webservers': dict({
'webserver1': dict({
}),
'webserver2': dict({
}),
'webserver3': dict({
}),
}),
}),
'config_entry': dict({
Expand Down Expand Up @@ -90,6 +122,13 @@
'name': 'Bron',
'power': False,
'problems': False,
'speed': 6,
'speed-type': 0,
'speeds': dict({
'1': 2,
'2': 4,
'3': 6,
}),
'temperature': 21.0,
'temperature-setpoint': 22.0,
'temperature-setpoint-cool-air': 22.0,
Expand All @@ -103,7 +142,51 @@
'temperature-setpoint-min-cool-air': 18.0,
'temperature-setpoint-min-hot-air': 16.0,
'temperature-step': 0.5,
'web-server': '11:22:33:44:55:67',
'web-server': 'webserver2',
'ws-connected': True,
}),
'aidoo_pro': dict({
'action': 1,
'active': True,
'available': True,
'id': 'aidoo_pro',
'installation': 'installation1',
'is-connected': True,
'mode': 2,
'modes': list([
1,
2,
3,
4,
5,
]),
'name': 'Bron Pro',
'power': True,
'problems': False,
'speed': 3,
'speed-type': 0,
'speeds': dict({
'0': 0,
'1': 1,
'2': 2,
'3': 3,
'4': 4,
'5': 5,
}),
'temperature': 20.0,
'temperature-setpoint': 22.0,
'temperature-setpoint-cool-air': 22.0,
'temperature-setpoint-hot-air': 22.0,
'temperature-setpoint-max': 30.0,
'temperature-setpoint-max-auto-air': 30.0,
'temperature-setpoint-max-cool-air': 30.0,
'temperature-setpoint-max-hot-air': 30.0,
'temperature-setpoint-min': 15.0,
'temperature-setpoint-min-auto-air': 18.0,
'temperature-setpoint-min-cool-air': 18.0,
'temperature-setpoint-min-hot-air': 16.0,
'temperature-step': 0.5,
'web-server': 'webserver3',
'ws-connected': True,
}),
}),
Expand Down Expand Up @@ -138,14 +221,14 @@
'zone2',
]),
}),
'grp2': dict({
'group2': dict({
'action': 6,
'active': False,
'aidoos': list([
'aidoo1',
]),
'available': True,
'id': 'grp2',
'id': 'group2',
'installation': 'installation1',
'mode': 3,
'modes': list([
Expand All @@ -164,18 +247,46 @@
'temperature-setpoint-min': 15.0,
'temperature-step': 0.5,
}),
'group3': dict({
'action': 1,
'active': True,
'aidoos': list([
'aidoo_pro',
]),
'available': True,
'id': 'group3',
'installation': 'installation1',
'mode': 2,
'modes': list([
1,
2,
3,
4,
5,
]),
'name': 'Aidoo Pro Group',
'num-devices': 1,
'power': True,
'temperature': 20.0,
'temperature-setpoint': 22.0,
'temperature-setpoint-max': 30.0,
'temperature-setpoint-min': 15.0,
'temperature-step': 0.5,
}),
}),
'installations': dict({
'installation1': dict({
'action': 1,
'active': True,
'aidoos': list([
'aidoo1',
'aidoo_pro',
]),
'available': True,
'groups': list([
'group1',
'grp2',
'group2',
'group3',
]),
'humidity': 27,
'id': 'installation1',
Expand All @@ -188,20 +299,21 @@
5,
]),
'name': 'House',
'num-devices': 3,
'num-groups': 2,
'num-devices': 4,
'num-groups': 3,
'power': True,
'systems': list([
'system1',
]),
'temperature': 22.0,
'temperature-setpoint': 23.3,
'temperature': 21.5,
'temperature-setpoint': 23.0,
'temperature-setpoint-max': 30.0,
'temperature-setpoint-min': 15.0,
'temperature-step': 0.5,
'web-servers': list([
'webserver1',
'11:22:33:44:55:67',
'webserver2',
'webserver3',
]),
'zones': list([
'zone1',
Expand Down Expand Up @@ -235,12 +347,27 @@
}),
}),
'web-servers': dict({
'11:22:33:44:55:67': dict({
'webserver1': dict({
'available': True,
'connection-date': '2023-05-07T12:55:51.000Z',
'disconnection-date': '2023-01-01T22:26:55.376Z',
'firmware': '3.44',
'id': 'webserver1',
'installation': 'installation1',
'name': 'WebServer 11:22:33:44:55:66',
'type': 'ws_az',
'wifi-channel': 36,
'wifi-mac': '**REDACTED**',
'wifi-quality': 4,
'wifi-rssi': -56,
'wifi-ssid': 'Wifi',
}),
'webserver2': dict({
'available': True,
'connection-date': '2023-05-24 17:00:52 +0200',
'disconnection-date': '2023-05-24 17:00:25 +0200',
'firmware': '3.13',
'id': '11:22:33:44:55:67',
'id': 'webserver2',
'installation': 'installation1',
'name': 'WebServer 11:22:33:44:55:67',
'type': 'ws_aidoo',
Expand All @@ -250,19 +377,19 @@
'wifi-rssi': -77,
'wifi-ssid': 'Wifi',
}),
'webserver1': dict({
'webserver3': dict({
'available': True,
'connection-date': '2023-05-07T12:55:51.000Z',
'disconnection-date': '2023-01-01T22:26:55.376Z',
'firmware': '3.44',
'id': 'webserver1',
'connection-date': '2023-11-05 17:00:52 +0200',
'disconnection-date': '2023-11-05 17:00:25 +0200',
'firmware': '4.01',
'id': 'webserver3',
'installation': 'installation1',
'name': 'WebServer 11:22:33:44:55:66',
'type': 'ws_az',
'wifi-channel': 36,
'name': 'WebServer 11:22:33:44:55:68',
'type': 'ws_aidoo',
'wifi-channel': 6,
'wifi-mac': '**REDACTED**',
'wifi-quality': 4,
'wifi-rssi': -56,
'wifi-rssi': -67,
'wifi-ssid': 'Wifi',
}),
}),
Expand Down
8 changes: 8 additions & 0 deletions tests/components/airzone_cloud/test_binary_sensor.py
Expand Up @@ -22,6 +22,14 @@ async def test_airzone_create_binary_sensors(hass: HomeAssistant) -> None:
state = hass.states.get("binary_sensor.bron_running")
assert state.state == STATE_OFF

state = hass.states.get("binary_sensor.bron_pro_problem")
assert state.state == STATE_OFF
assert state.attributes.get("errors") is None
assert state.attributes.get("warnings") is None

state = hass.states.get("binary_sensor.bron_pro_running")
assert state.state == STATE_ON

# Systems
state = hass.states.get("binary_sensor.system_1_problem")
assert state.state == STATE_ON
Expand Down
26 changes: 22 additions & 4 deletions tests/components/airzone_cloud/test_climate.py
Expand Up @@ -40,7 +40,7 @@ async def test_airzone_create_climates(hass: HomeAssistant) -> None:
# Aidoos
state = hass.states.get("climate.bron")
assert state.state == HVACMode.OFF
assert state.attributes.get(ATTR_CURRENT_HUMIDITY) is None
assert ATTR_CURRENT_HUMIDITY not in state.attributes
assert state.attributes[ATTR_CURRENT_TEMPERATURE] == 21.0
assert state.attributes[ATTR_HVAC_ACTION] == HVACAction.OFF
assert state.attributes[ATTR_HVAC_MODES] == [
Expand All @@ -56,6 +56,24 @@ async def test_airzone_create_climates(hass: HomeAssistant) -> None:
assert state.attributes[ATTR_TARGET_TEMP_STEP] == API_TEMPERATURE_STEP
assert state.attributes[ATTR_TEMPERATURE] == 22.0

state = hass.states.get("climate.bron_pro")
assert state.state == HVACMode.COOL
assert ATTR_CURRENT_HUMIDITY not in state.attributes
assert state.attributes[ATTR_CURRENT_TEMPERATURE] == 20.0
assert state.attributes[ATTR_HVAC_ACTION] == HVACAction.COOLING
assert state.attributes[ATTR_HVAC_MODES] == [
HVACMode.HEAT_COOL,
HVACMode.COOL,
HVACMode.HEAT,
HVACMode.FAN_ONLY,
HVACMode.DRY,
HVACMode.OFF,
]
assert state.attributes[ATTR_MAX_TEMP] == 30
assert state.attributes[ATTR_MIN_TEMP] == 15
assert state.attributes[ATTR_TARGET_TEMP_STEP] == API_TEMPERATURE_STEP
assert state.attributes[ATTR_TEMPERATURE] == 22.0

# Groups
state = hass.states.get("climate.group")
assert state.state == HVACMode.COOL
Expand All @@ -78,7 +96,7 @@ async def test_airzone_create_climates(hass: HomeAssistant) -> None:
state = hass.states.get("climate.house")
assert state.state == HVACMode.COOL
assert state.attributes[ATTR_CURRENT_HUMIDITY] == 27
assert state.attributes[ATTR_CURRENT_TEMPERATURE] == 22.0
assert state.attributes[ATTR_CURRENT_TEMPERATURE] == 21.5
assert state.attributes[ATTR_HVAC_ACTION] == HVACAction.COOLING
assert state.attributes[ATTR_HVAC_MODES] == [
HVACMode.HEAT_COOL,
Expand All @@ -91,7 +109,7 @@ async def test_airzone_create_climates(hass: HomeAssistant) -> None:
assert state.attributes[ATTR_MAX_TEMP] == 30
assert state.attributes[ATTR_MIN_TEMP] == 15
assert state.attributes[ATTR_TARGET_TEMP_STEP] == API_TEMPERATURE_STEP
assert state.attributes[ATTR_TEMPERATURE] == 23.3
assert state.attributes[ATTR_TEMPERATURE] == 23.0

# Zones
state = hass.states.get("climate.dormitorio")
Expand Down Expand Up @@ -541,7 +559,7 @@ async def test_airzone_climate_set_temp_error(hass: HomeAssistant) -> None:
)

state = hass.states.get("climate.house")
assert state.attributes[ATTR_TEMPERATURE] == 23.3
assert state.attributes[ATTR_TEMPERATURE] == 23.0

# Zones
with patch(
Expand Down