Remove distance sensor and esp32 always-true

This commit is contained in:
2026-05-21 20:36:01 +00:00
parent 5ba4ce86f4
commit fd14ff3434
9 changed files with 7 additions and 55 deletions
-6
View File
@@ -6,11 +6,9 @@
#include "esphome/core/component.h"
#include "esphome/core/defines.h"
#ifdef RATGDO_USE_DISTANCE_SENSOR
#include "Wire.h"
#include "vl53l4cx_class.h"
#define I2C Wire
#endif
namespace esphome::ratgdo {
@@ -23,17 +21,13 @@ class RATGDOSensor : public sensor::Sensor, public RATGDOClient, public Componen
public:
void dump_config() override;
void setup() override;
#ifdef RATGDO_USE_DISTANCE_SENSOR
void loop() override;
#endif
void set_ratgdo_sensor_type(RATGDOSensorType ratgdo_sensor_type_) { this->ratgdo_sensor_type_ = ratgdo_sensor_type_; }
protected:
RATGDOSensorType ratgdo_sensor_type_;
#ifdef RATGDO_USE_DISTANCE_SENSOR
VL53L4CX distance_sensor_;
#endif
};
} // namespace esphome::ratgdo