Compilation failure with ESP-IDF framework
In file included from src/esphome/components/aqi/aqi.cpp:1:
src/esphome/components/aqi/aqi.cpp: In member function 'void esphome::aqi::AQIComponent::no2_callback(float)':
src/esphome/components/aqi/aqi.cpp:256:17: error: format '%f' expects argument of type 'double', but argument 5 has type 'int' [-Werror=format=]
ESP_LOGD(TAG, "NO₂ calculated AQI %f, using %d", this->aqi_no2_);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I failed to pass in the raw AQI before the rounded value, so this is broken regardless of the framework used. Honestly, I am surprised this is as stable as it is, considering.