diff --git a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp index 3820dd2..2fc107a 100644 --- a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp +++ b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp @@ -9,7 +9,7 @@ namespace ratgdo { void RATGDOBinarySensor::setup() { - if (this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_MOTION) + if (this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_MOTION || this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_OBSTRUCTION) { this->publish_state(false); }