Hi Guys,
When trying to get the Airvisual component working I get the following errors…
2017-09-10 14:49:37 ERROR (MainThread) [homeassistant.components.sensor.airvisual] Unable to update sensor data
2017-09-10 14:49:37 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 381, in async_process_entity
new_entity, self, update_before_add=update_before_add
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 210, in async_add_entity
yield from entity.async_update()
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/sensor/airvisual.py”, line 252, in async_update
symbol = self._data.pollution_info.get(‘main{0}’.format(self._locale))
AttributeError: ‘NoneType’ object has no attribute ‘get’
2017-09-10 14:49:37 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 381, in async_process_entity
new_entity, self, update_before_add=update_before_add
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 210, in async_add_entity
yield from entity.async_update()
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/sensor/airvisual.py”, line 226, in async_update
self._state = self._data.pollution_info.get(
AttributeError: ‘NoneType’ object has no attribute ‘get’
2017-09-10 14:49:37 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 381, in async_process_entity
new_entity, self, update_before_add=update_before_add
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 210, in async_add_entity
yield from entity.async_update()
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/sensor/airvisual.py”, line 202, in async_update
aqi = self._data.pollution_info.get(‘aqi{0}’.format(self._locale))
AttributeError: ‘NoneType’ object has no attribute ‘get’
My configuration is as follows…
- platform: airvisual
api_key: !secret airvisual_api_key
monitored_conditions:
- us
latitude: xxx
longitude: xxx
radius: 1000
Any ideas what I’m doing wrong?