Migrate GIOS to use DataUpdateCoordinator (#33306)

* Migrate to DataUpdateCoordinator

* Simplify code
This commit is contained in:
Maciej Bieniek 2020-03-29 05:57:06 +02:00 committed by GitHub
parent f7ae78f78e
commit de2f506585
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 78 additions and 86 deletions

View file

@ -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"