From 8883b32a99c395a411bb75f99b876f2a0fe288b5 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 18:26:47 -0500 Subject: [PATCH] button --- components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }