mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-07 05:13:31 +02:00
Enable a bunch of clang-tidy checks (#2149)
This commit is contained in:
@@ -50,7 +50,7 @@ void TOF10120Sensor::update() {
|
||||
ESP_LOGW(TAG, "Distance measurement out of range");
|
||||
this->publish_state(NAN);
|
||||
} else {
|
||||
this->publish_state(distance_mm / 1000.0);
|
||||
this->publish_state(distance_mm / 1000.0f);
|
||||
}
|
||||
this->status_clear_warning();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user