Migrate GIOS to use DataUpdateCoordinator (#33306)
* Migrate to DataUpdateCoordinator * Simplify code
This commit is contained in:
1 parent
f7ae78f78e
commit
de2f506585
3 files changed
+78
-86
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user