Danielhiversen / home_assistant_airthings_cloud

Airthings cloud
Apache License 2.0
32 stars 6 forks source link

Error while setting up airthings_cloud platform for sensor - KeyError: 'mold' #5

Closed cfaelled closed 3 years ago

cfaelled commented 3 years ago

Hi When i try load sensor i get the following error. Ive got Wave Plus and Wave Mini connected to the cloud.

Logger: homeassistant.components.sensor Source: custom_components/airthings_cloud/sensor.py:77 Integration: Sensor (documentation, issues) First occurred: 20:10:51 (1 occurrences) Last logged: 20:10:51

Error while setting up airthings_cloud platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/airthings_cloud/sensor.py", line 64, in async_setup_platform dev.append(Airthings(sensor_id, sensor, airthings_data)) File "/config/custom_components/airthings_cloud/sensor.py", line 77, in init self._unit_of_measurement = SENSOR_TYPES[sensor[1]][0] KeyError: 'mold'