Fix waqi config parsing (#63897)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-11 15:05:07 +01:00 committed by GitHub
parent 1c29260a31
commit f2a6118435
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ async def async_setup_platform(
"""Set up the requested World Air Quality Index locations."""
token = config[CONF_TOKEN]
station_filter = config[CONF_STATIONS]
station_filter = config.get(CONF_STATIONS)
locations = config[CONF_LOCATIONS]
client = WaqiClient(token, async_get_clientsession(hass), timeout=TIMEOUT)