button
This commit is contained in:
parent
69b87e6318
commit
8883b32a99
|
@ -9,7 +9,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->binary_sensor_type_ == SensorType::RATGDO_SENSOR_OBSTRUCTION) {
|
||||||
this->publish_state(false);
|
this->publish_state(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue