mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Update aioairzone to v0.4.3 (#71312)
* Update aioairzone to v0.4.3 Fixes exception on older local API. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> * airzone: switch to set_hvac_parameters function Fixes failing airzone tests. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
7be5eed25c
commit
61a6d13d79
@ -123,7 +123,7 @@ class AirzoneClimate(AirzoneZoneEntity, ClimateEntity):
|
|||||||
}
|
}
|
||||||
_LOGGER.debug("update_hvac_params=%s", _params)
|
_LOGGER.debug("update_hvac_params=%s", _params)
|
||||||
try:
|
try:
|
||||||
await self.coordinator.airzone.put_hvac(_params)
|
await self.coordinator.airzone.set_hvac_parameters(_params)
|
||||||
except AirzoneError as error:
|
except AirzoneError as error:
|
||||||
raise HomeAssistantError(
|
raise HomeAssistantError(
|
||||||
f"Failed to set zone {self.name}: {error}"
|
f"Failed to set zone {self.name}: {error}"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Airzone",
|
"name": "Airzone",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/airzone",
|
"documentation": "https://www.home-assistant.io/integrations/airzone",
|
||||||
"requirements": ["aioairzone==0.4.2"],
|
"requirements": ["aioairzone==0.4.3"],
|
||||||
"codeowners": ["@Noltari"],
|
"codeowners": ["@Noltari"],
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["aioairzone"]
|
"loggers": ["aioairzone"]
|
||||||
|
@ -110,7 +110,7 @@ aio_geojson_nsw_rfs_incidents==0.4
|
|||||||
aio_georss_gdacs==0.7
|
aio_georss_gdacs==0.7
|
||||||
|
|
||||||
# homeassistant.components.airzone
|
# homeassistant.components.airzone
|
||||||
aioairzone==0.4.2
|
aioairzone==0.4.3
|
||||||
|
|
||||||
# homeassistant.components.ambient_station
|
# homeassistant.components.ambient_station
|
||||||
aioambient==2021.11.0
|
aioambient==2021.11.0
|
||||||
|
@ -94,7 +94,7 @@ aio_geojson_nsw_rfs_incidents==0.4
|
|||||||
aio_georss_gdacs==0.7
|
aio_georss_gdacs==0.7
|
||||||
|
|
||||||
# homeassistant.components.airzone
|
# homeassistant.components.airzone
|
||||||
aioairzone==0.4.2
|
aioairzone==0.4.3
|
||||||
|
|
||||||
# homeassistant.components.ambient_station
|
# homeassistant.components.ambient_station
|
||||||
aioambient==2021.11.0
|
aioambient==2021.11.0
|
||||||
|
@ -147,7 +147,7 @@ async def test_airzone_climate_turn_on_off(hass: HomeAssistant) -> None:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.airzone.AirzoneLocalApi.http_request",
|
"homeassistant.components.airzone.AirzoneLocalApi.put_hvac",
|
||||||
return_value=HVAC_MOCK,
|
return_value=HVAC_MOCK,
|
||||||
):
|
):
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
@ -172,7 +172,7 @@ async def test_airzone_climate_turn_on_off(hass: HomeAssistant) -> None:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.airzone.AirzoneLocalApi.http_request",
|
"homeassistant.components.airzone.AirzoneLocalApi.put_hvac",
|
||||||
return_value=HVAC_MOCK,
|
return_value=HVAC_MOCK,
|
||||||
):
|
):
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
@ -204,7 +204,7 @@ async def test_airzone_climate_set_hvac_mode(hass: HomeAssistant) -> None:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.airzone.AirzoneLocalApi.http_request",
|
"homeassistant.components.airzone.AirzoneLocalApi.put_hvac",
|
||||||
return_value=HVAC_MOCK,
|
return_value=HVAC_MOCK,
|
||||||
):
|
):
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
@ -230,7 +230,7 @@ async def test_airzone_climate_set_hvac_mode(hass: HomeAssistant) -> None:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.airzone.AirzoneLocalApi.http_request",
|
"homeassistant.components.airzone.AirzoneLocalApi.put_hvac",
|
||||||
return_value=HVAC_MOCK_2,
|
return_value=HVAC_MOCK_2,
|
||||||
):
|
):
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
@ -263,7 +263,7 @@ async def test_airzone_climate_set_hvac_slave_error(hass: HomeAssistant) -> None
|
|||||||
await async_init_integration(hass)
|
await async_init_integration(hass)
|
||||||
|
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.airzone.AirzoneLocalApi.http_request",
|
"homeassistant.components.airzone.AirzoneLocalApi.put_hvac",
|
||||||
return_value=HVAC_MOCK,
|
return_value=HVAC_MOCK,
|
||||||
), pytest.raises(HomeAssistantError):
|
), pytest.raises(HomeAssistantError):
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
@ -296,7 +296,7 @@ async def test_airzone_climate_set_temp(hass: HomeAssistant) -> None:
|
|||||||
await async_init_integration(hass)
|
await async_init_integration(hass)
|
||||||
|
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.airzone.AirzoneLocalApi.http_request",
|
"homeassistant.components.airzone.AirzoneLocalApi.put_hvac",
|
||||||
return_value=HVAC_MOCK,
|
return_value=HVAC_MOCK,
|
||||||
):
|
):
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user