mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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>
This commit is contained in:
parent
b9ec3a8af8
commit
11e268775c
@ -6,6 +6,7 @@ from typing import Any
|
|||||||
|
|
||||||
from aioairzone_cloud.const import (
|
from aioairzone_cloud.const import (
|
||||||
AZD_AIDOOS,
|
AZD_AIDOOS,
|
||||||
|
AZD_AVAILABLE,
|
||||||
AZD_FIRMWARE,
|
AZD_FIRMWARE,
|
||||||
AZD_NAME,
|
AZD_NAME,
|
||||||
AZD_SYSTEM_ID,
|
AZD_SYSTEM_ID,
|
||||||
@ -26,6 +27,11 @@ from .coordinator import AirzoneUpdateCoordinator
|
|||||||
class AirzoneEntity(CoordinatorEntity[AirzoneUpdateCoordinator], ABC):
|
class AirzoneEntity(CoordinatorEntity[AirzoneUpdateCoordinator], ABC):
|
||||||
"""Define an Airzone Cloud entity."""
|
"""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
|
@abstractmethod
|
||||||
def get_airzone_value(self, key: str) -> Any:
|
def get_airzone_value(self, key: str) -> Any:
|
||||||
"""Return Airzone Cloud entity value by key."""
|
"""Return Airzone Cloud entity value by key."""
|
||||||
|
@ -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_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["aioairzone_cloud"],
|
"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
|
aioairq==0.2.4
|
||||||
|
|
||||||
# homeassistant.components.airzone_cloud
|
# homeassistant.components.airzone_cloud
|
||||||
aioairzone-cloud==0.1.6
|
aioairzone-cloud==0.1.7
|
||||||
|
|
||||||
# homeassistant.components.airzone
|
# homeassistant.components.airzone
|
||||||
aioairzone==0.6.1
|
aioairzone==0.6.1
|
||||||
|
@ -106,7 +106,7 @@ aio_georss_gdacs==0.8
|
|||||||
aioairq==0.2.4
|
aioairq==0.2.4
|
||||||
|
|
||||||
# homeassistant.components.airzone_cloud
|
# homeassistant.components.airzone_cloud
|
||||||
aioairzone-cloud==0.1.6
|
aioairzone-cloud==0.1.7
|
||||||
|
|
||||||
# homeassistant.components.airzone
|
# homeassistant.components.airzone
|
||||||
aioairzone==0.6.1
|
aioairzone==0.6.1
|
||||||
|
@ -32,6 +32,7 @@ from aioairzone_cloud.const import (
|
|||||||
API_SYSTEM_NUMBER,
|
API_SYSTEM_NUMBER,
|
||||||
API_TYPE,
|
API_TYPE,
|
||||||
API_WARNINGS,
|
API_WARNINGS,
|
||||||
|
API_WS_CONNECTED,
|
||||||
API_WS_FW,
|
API_WS_FW,
|
||||||
API_WS_ID,
|
API_WS_ID,
|
||||||
API_WS_IDS,
|
API_WS_IDS,
|
||||||
@ -160,6 +161,7 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
|
|||||||
return {
|
return {
|
||||||
API_ERRORS: [],
|
API_ERRORS: [],
|
||||||
API_IS_CONNECTED: True,
|
API_IS_CONNECTED: True,
|
||||||
|
API_WS_CONNECTED: True,
|
||||||
API_LOCAL_TEMP: {
|
API_LOCAL_TEMP: {
|
||||||
API_CELSIUS: 21,
|
API_CELSIUS: 21,
|
||||||
API_FAH: 70,
|
API_FAH: 70,
|
||||||
@ -170,12 +172,14 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
|
|||||||
return {
|
return {
|
||||||
API_ERRORS: [],
|
API_ERRORS: [],
|
||||||
API_IS_CONNECTED: True,
|
API_IS_CONNECTED: True,
|
||||||
|
API_WS_CONNECTED: True,
|
||||||
API_WARNINGS: [],
|
API_WARNINGS: [],
|
||||||
}
|
}
|
||||||
if device.get_id() == "zone2":
|
if device.get_id() == "zone2":
|
||||||
return {
|
return {
|
||||||
API_HUMIDITY: 24,
|
API_HUMIDITY: 24,
|
||||||
API_IS_CONNECTED: True,
|
API_IS_CONNECTED: True,
|
||||||
|
API_WS_CONNECTED: True,
|
||||||
API_LOCAL_TEMP: {
|
API_LOCAL_TEMP: {
|
||||||
API_FAH: 77,
|
API_FAH: 77,
|
||||||
API_CELSIUS: 25,
|
API_CELSIUS: 25,
|
||||||
@ -185,6 +189,7 @@ def mock_get_device_status(device: Device) -> dict[str, Any]:
|
|||||||
return {
|
return {
|
||||||
API_HUMIDITY: 30,
|
API_HUMIDITY: 30,
|
||||||
API_IS_CONNECTED: True,
|
API_IS_CONNECTED: True,
|
||||||
|
API_WS_CONNECTED: True,
|
||||||
API_LOCAL_TEMP: {
|
API_LOCAL_TEMP: {
|
||||||
API_FAH: 68,
|
API_FAH: 68,
|
||||||
API_CELSIUS: 20,
|
API_CELSIUS: 20,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user