2022-03-08 21:28:39 +00:00
|
|
|
"""Constants for the Airzone integration."""
|
|
|
|
|
|
|
|
from typing import Final
|
|
|
|
|
2022-03-09 19:51:39 +00:00
|
|
|
from aioairzone.common import TemperatureUnit
|
|
|
|
|
|
|
|
from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT
|
|
|
|
|
2022-03-08 21:28:39 +00:00
|
|
|
DOMAIN: Final = "airzone"
|
|
|
|
MANUFACTURER: Final = "Airzone"
|
|
|
|
|
|
|
|
AIOAIRZONE_DEVICE_TIMEOUT_SEC: Final = 10
|
|
|
|
DEFAULT_LOCAL_API_PORT: Final = 3000
|
2022-03-09 19:51:39 +00:00
|
|
|
|
|
|
|
TEMP_UNIT_LIB_TO_HASS: Final[dict[TemperatureUnit, str]] = {
|
|
|
|
TemperatureUnit.CELSIUS: TEMP_CELSIUS,
|
|
|
|
TemperatureUnit.FAHRENHEIT: TEMP_FAHRENHEIT,
|
|
|
|
}
|