Migrate GIOS to use DataUpdateCoordinator (#33306)
* Migrate to DataUpdateCoordinator * Simplify code
This commit is contained in:
parent
f7ae78f78e
commit
de2f506585
3 changed files with 78 additions and 86 deletions
|
@ -4,10 +4,9 @@ from datetime import timedelta
|
|||
ATTR_NAME = "name"
|
||||
ATTR_STATION = "station"
|
||||
CONF_STATION_ID = "station_id"
|
||||
DATA_CLIENT = "client"
|
||||
DEFAULT_NAME = "GIOŚ"
|
||||
# Term of service GIOŚ allow downloading data no more than twice an hour.
|
||||
DEFAULT_SCAN_INTERVAL = timedelta(minutes=30)
|
||||
SCAN_INTERVAL = timedelta(minutes=30)
|
||||
DOMAIN = "gios"
|
||||
|
||||
AQI_GOOD = "dobry"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue