MallocArray / airgradient_esphome

ESPHome definition for an AirGradient DIY device to send data to HomeAssistant and AirGradient servers
GNU General Public License v3.0
244 stars 42 forks source link

Removing "AQI" unit for PM 2.5 AQI sensor #77

Closed Qhilm closed 2 months ago

Qhilm commented 3 months ago

Home Assistant does not expect any unit of measurement and throws a warning here:

Entity sensor.ag_open_air_o_1pst_pm_2_5_aqi (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'AQI' which is not a valid unit for the device class ('aqi') it is using; expected one of ['no unit of measurement'];

MallocArray commented 2 months ago

When do you see this message? I don't recall seeing it when installing to a device.

Qhilm commented 2 months ago

When do you see this message? I don't recall seeing it when installing to a device.

In the home assistant logs, after restarting it.