mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
[ci] Make ESP32 IDF the comprehensive clang-tidy pass (#16823)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
co-authored by
J. Nick Koston
parent
b0e1b94c45
commit
351b986896
@@ -2,6 +2,7 @@
|
||||
|
||||
#if defined(USE_ARDUINO) || defined(USE_ESP32)
|
||||
|
||||
#include <cmath>
|
||||
#include <map>
|
||||
#include <IRSender.h>
|
||||
#include <HeatpumpIRFactory.h>
|
||||
@@ -113,7 +114,7 @@ void HeatpumpIRClimate::setup() {
|
||||
this->current_temperature = state;
|
||||
|
||||
IRSenderESPHome esp_sender(this->transmitter_);
|
||||
this->heatpump_ir_->send(esp_sender, uint8_t(lround(this->current_temperature)));
|
||||
this->heatpump_ir_->send(esp_sender, uint8_t(std::lround(this->current_temperature)));
|
||||
|
||||
// current temperature changed, publish state
|
||||
this->publish_state();
|
||||
|
||||
Reference in New Issue
Block a user