mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Fix waqi config parsing (#63897)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
1c29260a31
commit
f2a6118435
@ -80,7 +80,7 @@ async def async_setup_platform(
|
|||||||
"""Set up the requested World Air Quality Index locations."""
|
"""Set up the requested World Air Quality Index locations."""
|
||||||
|
|
||||||
token = config[CONF_TOKEN]
|
token = config[CONF_TOKEN]
|
||||||
station_filter = config[CONF_STATIONS]
|
station_filter = config.get(CONF_STATIONS)
|
||||||
locations = config[CONF_LOCATIONS]
|
locations = config[CONF_LOCATIONS]
|
||||||
|
|
||||||
client = WaqiClient(token, async_get_clientsession(hass), timeout=TIMEOUT)
|
client = WaqiClient(token, async_get_clientsession(hass), timeout=TIMEOUT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user