Update aioairzone to v0.3.8 (#70060)
This commit is contained in:
parent
cdabcce83a
commit
459d775ad5
8 changed files with 18 additions and 18 deletions
|
@ -11,6 +11,7 @@ from aioairzone.const import (
|
|||
AZD_THERMOSTAT_FW,
|
||||
AZD_THERMOSTAT_MODEL,
|
||||
AZD_ZONES,
|
||||
DEFAULT_SYSTEM_ID,
|
||||
)
|
||||
from aioairzone.localapi import AirzoneLocalApi
|
||||
|
||||
|
@ -21,7 +22,7 @@ from homeassistant.helpers import aiohttp_client
|
|||
from homeassistant.helpers.entity import DeviceInfo
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
from .const import DEFAULT_SYSTEM_ID, DOMAIN, MANUFACTURER
|
||||
from .const import DOMAIN, MANUFACTURER
|
||||
from .coordinator import AirzoneUpdateCoordinator
|
||||
|
||||
PLATFORMS: list[Platform] = [Platform.BINARY_SENSOR, Platform.CLIMATE, Platform.SENSOR]
|
||||
|
|
|
@ -4,6 +4,7 @@ from __future__ import annotations
|
|||
from typing import Any
|
||||
|
||||
from aioairzone.common import ConnectionOptions
|
||||
from aioairzone.const import DEFAULT_PORT, DEFAULT_SYSTEM_ID
|
||||
from aioairzone.exceptions import AirzoneError, InvalidSystem
|
||||
from aioairzone.localapi import AirzoneLocalApi
|
||||
import voluptuous as vol
|
||||
|
@ -13,18 +14,18 @@ from homeassistant.const import CONF_HOST, CONF_ID, CONF_PORT
|
|||
from homeassistant.data_entry_flow import FlowResult
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
from .const import DEFAULT_LOCAL_API_PORT, DEFAULT_SYSTEM_ID, DOMAIN
|
||||
from .const import DOMAIN
|
||||
|
||||
CONFIG_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Required(CONF_HOST): str,
|
||||
vol.Required(CONF_PORT, default=DEFAULT_LOCAL_API_PORT): int,
|
||||
vol.Required(CONF_PORT, default=DEFAULT_PORT): int,
|
||||
}
|
||||
)
|
||||
SYSTEM_ID_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Required(CONF_HOST): str,
|
||||
vol.Required(CONF_PORT, default=DEFAULT_LOCAL_API_PORT): int,
|
||||
vol.Required(CONF_PORT, default=DEFAULT_PORT): int,
|
||||
vol.Required(CONF_ID, default=1): int,
|
||||
}
|
||||
)
|
||||
|
|
|
@ -11,8 +11,6 @@ MANUFACTURER: Final = "Airzone"
|
|||
|
||||
AIOAIRZONE_DEVICE_TIMEOUT_SEC: Final = 10
|
||||
API_TEMPERATURE_STEP: Final = 0.5
|
||||
DEFAULT_LOCAL_API_PORT: Final = 3000
|
||||
DEFAULT_SYSTEM_ID: Final = 0
|
||||
|
||||
TEMP_UNIT_LIB_TO_HASS: Final[dict[TemperatureUnit, str]] = {
|
||||
TemperatureUnit.CELSIUS: TEMP_CELSIUS,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Airzone",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/airzone",
|
||||
"requirements": ["aioairzone==0.3.6"],
|
||||
"requirements": ["aioairzone==0.3.8"],
|
||||
"codeowners": ["@Noltari"],
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["aioairzone"]
|
||||
|
|
|
@ -110,7 +110,7 @@ aio_geojson_nsw_rfs_incidents==0.4
|
|||
aio_georss_gdacs==0.7
|
||||
|
||||
# homeassistant.components.airzone
|
||||
aioairzone==0.3.6
|
||||
aioairzone==0.3.8
|
||||
|
||||
# homeassistant.components.ambient_station
|
||||
aioambient==2021.11.0
|
||||
|
|
|
@ -94,7 +94,7 @@ aio_geojson_nsw_rfs_incidents==0.4
|
|||
aio_georss_gdacs==0.7
|
||||
|
||||
# homeassistant.components.airzone
|
||||
aioairzone==0.3.6
|
||||
aioairzone==0.3.8
|
||||
|
||||
# homeassistant.components.ambient_station
|
||||
aioambient==2021.11.0
|
||||
|
|
|
@ -15,7 +15,7 @@ async def test_airzone_create_binary_sensors(hass: HomeAssistant) -> None:
|
|||
assert state.state == STATE_OFF
|
||||
|
||||
state = hass.states.get("binary_sensor.despacho_floor_demand")
|
||||
assert state.state == STATE_OFF
|
||||
assert state is None
|
||||
|
||||
state = hass.states.get("binary_sensor.despacho_problem")
|
||||
assert state.state == STATE_OFF
|
||||
|
@ -33,7 +33,7 @@ async def test_airzone_create_binary_sensors(hass: HomeAssistant) -> None:
|
|||
assert state.state == STATE_OFF
|
||||
|
||||
state = hass.states.get("binary_sensor.dorm_2_floor_demand")
|
||||
assert state.state == STATE_OFF
|
||||
assert state is None
|
||||
|
||||
state = hass.states.get("binary_sensor.dorm_2_problem")
|
||||
assert state.state == STATE_OFF
|
||||
|
@ -42,7 +42,7 @@ async def test_airzone_create_binary_sensors(hass: HomeAssistant) -> None:
|
|||
assert state.state == STATE_ON
|
||||
|
||||
state = hass.states.get("binary_sensor.dorm_ppal_floor_demand")
|
||||
assert state.state == STATE_OFF
|
||||
assert state.state == STATE_ON
|
||||
|
||||
state = hass.states.get("binary_sensor.dorm_ppal_problem")
|
||||
assert state.state == STATE_OFF
|
||||
|
@ -51,7 +51,7 @@ async def test_airzone_create_binary_sensors(hass: HomeAssistant) -> None:
|
|||
assert state.state == STATE_OFF
|
||||
|
||||
state = hass.states.get("binary_sensor.salon_floor_demand")
|
||||
assert state.state == STATE_OFF
|
||||
assert state is None
|
||||
|
||||
state = hass.states.get("binary_sensor.salon_problem")
|
||||
assert state.state == STATE_OFF
|
||||
|
|
|
@ -86,13 +86,13 @@ HVAC_MOCK = {
|
|||
API_MODE: 3,
|
||||
API_COLD_STAGES: 1,
|
||||
API_COLD_STAGE: 1,
|
||||
API_HEAT_STAGES: 1,
|
||||
API_HEAT_STAGE: 1,
|
||||
API_HEAT_STAGES: 3,
|
||||
API_HEAT_STAGE: 3,
|
||||
API_HUMIDITY: 39,
|
||||
API_UNITS: 0,
|
||||
API_ERRORS: [],
|
||||
API_AIR_DEMAND: 1,
|
||||
API_FLOOR_DEMAND: 0,
|
||||
API_FLOOR_DEMAND: 1,
|
||||
},
|
||||
{
|
||||
API_SYSTEM_ID: 1,
|
||||
|
@ -106,8 +106,8 @@ HVAC_MOCK = {
|
|||
API_MODE: 3,
|
||||
API_COLD_STAGES: 1,
|
||||
API_COLD_STAGE: 1,
|
||||
API_HEAT_STAGES: 1,
|
||||
API_HEAT_STAGE: 1,
|
||||
API_HEAT_STAGES: 2,
|
||||
API_HEAT_STAGE: 2,
|
||||
API_HUMIDITY: 35,
|
||||
API_UNITS: 0,
|
||||
API_ERRORS: [],
|
||||
|
|
Loading…
Add table
Reference in a new issue