From 4e127e3566b5f4c36de3ed886a40c56aee434771 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 17:28:29 -0500 Subject: [PATCH] fix light state --- 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 1f005f9..b3b6272 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(false); } void RATGDOBinarySensor::dump_config()