fix light state
This commit is contained in:
parent
50228f5679
commit
4e127e3566
|
@ -10,7 +10,7 @@ namespace ratgdo {
|
||||||
void RATGDOBinarySensor::setup()
|
void RATGDOBinarySensor::setup()
|
||||||
{
|
{
|
||||||
if (this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_MOTION)
|
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()
|
void RATGDOBinarySensor::dump_config()
|
||||||
|
|
Loading…
Reference in New Issue