mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
parent
760138ac52
commit
cbbb15fa48
@ -32,7 +32,7 @@ ATTRIBUTION = 'Data provided by the World Air Quality Index project'
|
||||
CONF_LOCATIONS = 'locations'
|
||||
CONF_STATIONS = 'stations'
|
||||
|
||||
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=10)
|
||||
SCAN_INTERVAL = timedelta(minutes=5)
|
||||
|
||||
SENSOR_TYPES = {
|
||||
'aqi': ['AQI', '0-300+', 'mdi:cloud']
|
||||
@ -63,8 +63,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
(waqi_sensor.station_name in station_filter):
|
||||
dev.append(WaqiSensor(WaqiData(station, token), station))
|
||||
|
||||
print("#### Locations", locations)
|
||||
print("### Stations", station_filter)
|
||||
add_devices(dev, True)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user