diff --git a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp index 0430bb1..1f005f9 100644 --- a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp +++ b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp @@ -10,7 +10,7 @@ namespace ratgdo { void RATGDOBinarySensor::setup() { if (this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_MOTION) - this->publish_state(state == MotionState::MOTION_STATE_CLEAR); + this->publish_state(state == MotionState::MOTION_STATE_CLEAR); } void RATGDOBinarySensor::dump_config() diff --git a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.h b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.h index 41fca86..ae790e0 100644 --- a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.h +++ b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.h @@ -16,6 +16,7 @@ namespace ratgdo { class RATGDOBinarySensor : public binary_sensor::BinarySensor, public RATGDOClient, public Component { public: + void setup() override; void dump_config() override; void set_binary_sensor_type(SensorType binary_sensor_type_) { this->binary_sensor_type_ = binary_sensor_type_; }