Migrate GIOS to use DataUpdateCoordinator (#33306)

* Migrate to DataUpdateCoordinator

* Simplify code
This commit is contained in:
Maciej Bieniek authored and GitHub committed 2020-03-28 20:57:06 -07:00
1 parent f7ae78f78e
commit de2f506585
3 files changed
+78 -86

No files matched your search

+1 -2
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"