binary sensor

This commit is contained in:
J. Nick Koston 2023-06-07 11:38:34 -05:00
parent 9f75f8cf58
commit 6ddaff2253
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ static const char *const TAG = "ratgdo.binary_sensor";
void RATGDOBinarySensor::dump_config() {
LOG_BINARY_SENSOR("", "RATGDO BinarySensor", this);
ESP_LOGCONFIG(" Type: %s", this->type_);
ESP_LOGCONFIG(TAG, " Type: %s", this->type_ == SensorType::RATGDO_SENSOR_MOTION ? "Motion" : "Obstruction");
}
void RATGDOBinarySensor::on_motion_state(esphome::ratgdo::MotionState state) {
if (this->type_ == SensorType::RATGDO_SENSOR_MOTION)