fix light state

This commit is contained in:
J. Nick Koston 2023-06-07 17:28:29 -05:00
parent 50228f5679
commit 4e127e3566
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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()