diff --git a/homeassistant/components/sensor/airvisual.py b/homeassistant/components/sensor/airvisual.py index dcd89ccb78a..6837b9e1b2f 100644 --- a/homeassistant/components/sensor/airvisual.py +++ b/homeassistant/components/sensor/airvisual.py @@ -281,7 +281,7 @@ class AirVisualData: _LOGGER.debug("New data retrieved: %s", resp) self.pollution_info = resp['current']['pollution'] - except AirVisualError as err: + except (KeyError, AirVisualError) as err: if self.city and self.state and self.country: location = (self.city, self.state, self.country) else: