Update aioairzone-cloud to v0.1.7 (#93871)
* Update aioairzone-cloud to v0.1.7 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> * airzone_cloud: fix copy&paste description Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> --------- Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>pull/93884/head
parent
b9ec3a8af8
commit
11e268775c
|
@ -6,6 +6,7 @@ from typing import Any
|
|||
|
||||
from aioairzone_cloud.const import (
|
||||
AZD_AIDOOS,
|
||||
AZD_AVAILABLE,
|
||||
AZD_FIRMWARE,
|
||||
AZD_NAME,
|
||||
AZD_SYSTEM_ID,
|
||||
|
@ -26,6 +27,11 @@ from .coordinator import AirzoneUpdateCoordinator
|
|||
class AirzoneEntity(CoordinatorEntity[AirzoneUpdateCoordinator], ABC):
|
||||
"""Define an Airzone Cloud entity."""
|
||||
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
"""Return Airzone Cloud entity availability."""
|
||||
return super().available and self.get_airzone_value(AZD_AVAILABLE)
|
||||
|
||||
@abstractmethod
|
||||
def get_airzone_value(self, key: str) -> Any:
|
||||
"""Return Airzone Cloud entity value by key."""
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
"documentation": "https://www.home-assistant.io/integrations/airzone_cloud",
|
||||
"iot_class": "cloud_polling",
|
||||
"loggers": ["aioairzone_cloud"],
|
||||
"requirements": ["aioairzone-cloud==0.1.6"]
|
||||
"requirements": ["aioairzone-cloud==0.1.7"]
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ aio_georss_gdacs==0.8
|
|||
aioairq==0.2.4
|
||||
|
||||
# homeassistant.components.airzone_cloud
|
||||
aioairzone-cloud==0.1.6
|
||||
aioairzone-cloud==0.1.7
|
||||
|
||||
# homeassistant.components.airzone
|
||||
aioairzone==0.6.1
|
||||
|
|
|
@ -106,7 +106,7 @@ aio_georss_gdacs==0.8
|
|||
aioairq==0.2.4
|
||||
|
||||
# homeassistant.components.airzone_cloud
|
||||
aioairzone-cloud==0.1.6
|
||||
aioairzone-cloud==0.1.7
|
||||
|
||||
# homeassistant.components.airzone
|
||||
aioairzone==0.6.1
|
||||
|
|
|
@ -32,6 +32,7 @@ from aioairzone_cloud.const import (
|
|||
API_SYSTEM_NUMBER,
|
||||
API_TYPE,
|
||||
API_WARNINGS,
|
||||
API_WS_CONNECTED,
|
||||
API_WS_FW,
|
||||
API_WS_ID,
|
||||
API_WS_IDS,
|
||||
|
@ -160,6 +161,7 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
|
|||
return {
|
||||
API_ERRORS: [],
|
||||
API_IS_CONNECTED: True,
|
||||
API_WS_CONNECTED: True,
|
||||
API_LOCAL_TEMP: {
|
||||
API_CELSIUS: 21,
|
||||
API_FAH: 70,
|
||||
|
@ -170,12 +172,14 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
|
|||
return {
|
||||
API_ERRORS: [],
|
||||
API_IS_CONNECTED: True,
|
||||
API_WS_CONNECTED: True,
|
||||
API_WARNINGS: [],
|
||||
}
|
||||
if device.get_id() == "zone2":
|
||||
return {
|
||||
API_HUMIDITY: 24,
|
||||
API_IS_CONNECTED: True,
|
||||
API_WS_CONNECTED: True,
|
||||
API_LOCAL_TEMP: {
|
||||
API_FAH: 77,
|
||||
API_CELSIUS: 25,
|
||||
|
@ -185,6 +189,7 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
|
|||
return {
|
||||
API_HUMIDITY: 30,
|
||||
API_IS_CONNECTED: True,
|
||||
API_WS_CONNECTED: True,
|
||||
API_LOCAL_TEMP: {
|
||||
API_FAH: 68,
|
||||
API_CELSIUS: 20,
|
||||
|
|
Loading…
Reference in New Issue