opened
mspinolo
username_0
<!-- READ THIS FIRST:
- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/
- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases
- Do not report issues for components if you are using custom components: files in <config-dir>/custom_components
- This is for bugs only. Feature and enhancement requests should go in our community forum: https://community.home-assistant.io/c/feature-requests
- Provide as many details as possible. Paste logs, configuration sample and code into the backticks. Do not delete any text from this template!
-->

**Home Assistant release with the issue:0.78
<!--
- Frontend -> Developer tools -> Info
- Or use this command: hass --version
-->


**Last working Home Assistant release (if known):0.77.3


**Operating environment (Hass.io/Docker/Windows/etc.):hassbian latest version updated
<!--
Please provide details about your environment.
-->

**Component/platform: airvisual
<!--
Please add the link to the documentation at https://www.home-assistant.io/components/ of the component/platform in question.
-->


**Description of problem: can't initialize airvisual



**Problem-relevant `configuration.yaml` entries and (fill out even if it seems unimportant):- platform: airvisual
  api_key: MY API triple checked it is correct an active
  monitored_conditions:
    - us
  city: my city
  state: my region
  country: italy
  show_on_map: true
  scan_interval: 300
```yaml

```

**Traceback (if applicable):N/A
```

```

**Additional information: i get the following error
Log Details (ERROR)
Mon Sep 17 2018 21:43:33 GMT+0200 (CEST)

Error while setting up platform airvisual
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
    return fut.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/airvisual.py", line 155, in async_setup_platform
    await data.async_update()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/airvisual.py", line 283, in _async_update
    self.pollution_info = resp['current']['pollution']
KeyError: 'pollution'
Airvisual component does not initialize
issue
closed
bachya
username_1
issue
created
bachya
username_1
Duplicate of https://github.com/home-assistant/home-assistant/issues/16639.
comment