Update black to 22.1.0 (#65788)
This commit is contained in:
parent
58409d0895
commit
fa09cf663e
42 changed files with 204 additions and 255 deletions
|
@ -91,15 +91,11 @@ async def async_setup_platform(
|
|||
_LOGGER.debug("The following stations were returned: %s", stations)
|
||||
for station in stations:
|
||||
waqi_sensor = WaqiSensor(client, station)
|
||||
if (
|
||||
not station_filter
|
||||
or {
|
||||
waqi_sensor.uid,
|
||||
waqi_sensor.url,
|
||||
waqi_sensor.station_name,
|
||||
}
|
||||
& set(station_filter)
|
||||
):
|
||||
if not station_filter or {
|
||||
waqi_sensor.uid,
|
||||
waqi_sensor.url,
|
||||
waqi_sensor.station_name,
|
||||
} & set(station_filter):
|
||||
dev.append(waqi_sensor)
|
||||
except (
|
||||
aiohttp.client_exceptions.ClientConnectorError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue