2019-10-04 11:58:29 +00:00
|
|
|
"""Constants for Airly integration."""
|
2021-05-07 14:47:52 +00:00
|
|
|
from __future__ import annotations
|
2021-02-05 11:41:36 +00:00
|
|
|
|
2021-05-07 14:47:52 +00:00
|
|
|
from typing import Final
|
2021-02-05 11:41:36 +00:00
|
|
|
|
2021-05-07 14:47:52 +00:00
|
|
|
ATTR_API_ADVICE: Final = "ADVICE"
|
|
|
|
ATTR_API_CAQI: Final = "CAQI"
|
|
|
|
ATTR_API_CAQI_DESCRIPTION: Final = "DESCRIPTION"
|
|
|
|
ATTR_API_CAQI_LEVEL: Final = "LEVEL"
|
2022-09-16 21:19:30 +00:00
|
|
|
ATTR_API_CO: Final = "CO"
|
2021-05-07 14:47:52 +00:00
|
|
|
ATTR_API_HUMIDITY: Final = "HUMIDITY"
|
2022-09-16 21:19:30 +00:00
|
|
|
ATTR_API_NO2: Final = "NO2"
|
|
|
|
ATTR_API_O3: Final = "O3"
|
2021-05-07 14:47:52 +00:00
|
|
|
ATTR_API_PM10: Final = "PM10"
|
2021-05-20 09:34:32 +00:00
|
|
|
ATTR_API_PM1: Final = "PM1"
|
2021-05-07 14:47:52 +00:00
|
|
|
ATTR_API_PM25: Final = "PM25"
|
|
|
|
ATTR_API_PRESSURE: Final = "PRESSURE"
|
2022-09-16 21:19:30 +00:00
|
|
|
ATTR_API_SO2: Final = "SO2"
|
2021-05-07 14:47:52 +00:00
|
|
|
ATTR_API_TEMPERATURE: Final = "TEMPERATURE"
|
2021-06-28 08:15:56 +00:00
|
|
|
|
|
|
|
ATTR_ADVICE: Final = "advice"
|
|
|
|
ATTR_DESCRIPTION: Final = "description"
|
|
|
|
ATTR_LEVEL: Final = "level"
|
|
|
|
ATTR_LIMIT: Final = "limit"
|
|
|
|
ATTR_PERCENT: Final = "percent"
|
|
|
|
|
|
|
|
SUFFIX_PERCENT: Final = "PERCENT"
|
|
|
|
SUFFIX_LIMIT: Final = "LIMIT"
|
2021-05-07 14:47:52 +00:00
|
|
|
|
|
|
|
ATTRIBUTION: Final = "Data provided by Airly"
|
|
|
|
CONF_USE_NEAREST: Final = "use_nearest"
|
|
|
|
DOMAIN: Final = "airly"
|
|
|
|
LABEL_ADVICE: Final = "advice"
|
|
|
|
MANUFACTURER: Final = "Airly sp. z o.o."
|
|
|
|
MAX_UPDATE_INTERVAL: Final = 90
|
|
|
|
MIN_UPDATE_INTERVAL: Final = 5
|
|
|
|
NO_AIRLY_SENSORS: Final = "There are no Airly sensors in this area yet."
|
2021-11-02 08:39:23 +00:00
|
|
|
URL = "https://airly.org/map/#{latitude},{longitude}"
|