fix button

This commit is contained in:
J. Nick Koston 2023-06-09 19:06:17 -05:00
parent b456a245d5
commit 2f6c90b50f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ namespace ratgdo {
void RATGDOBinarySensor::setup() void RATGDOBinarySensor::setup()
{ {
if (this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_MOTION || this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_OBSTRUCTION) if (this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_MOTION || this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_OBSTRUCTION || this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_BUTTON)
this->publish_state(false); this->publish_state(false);
} }