Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for GIOS integration."""
2 
3 from __future__ import annotations
4 
5 from datetime import timedelta
6 from typing import Final
7 
8 ATTRIBUTION: Final = "Data provided by GIOŚ"
9 
10 CONF_STATION_ID: Final = "station_id"
11 # Term of service GIOŚ allow downloading data no more than twice an hour.
12 SCAN_INTERVAL: Final = timedelta(minutes=30)
13 DOMAIN: Final = "gios"
14 MANUFACTURER: Final = "Główny Inspektorat Ochrony Środowiska"
15 
16 URL = "http://powietrze.gios.gov.pl/pjp/current/station_details/info/{station_id}"
17 
18 API_TIMEOUT: Final = 30
19 
20 ATTR_C6H6: Final = "c6h6"
21 ATTR_CO: Final = "co"
22 ATTR_NO2: Final = "no2"
23 ATTR_O3: Final = "o3"
24 ATTR_PM10: Final = "pm10"
25 ATTR_PM25: Final = "pm25"
26 ATTR_SO2: Final = "so2"
27 ATTR_AQI: Final = "aqi"