From 6ddaff2253920e3fc39c5d69b098e2017283215c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 11:38:34 -0500 Subject: [PATCH] binary sensor --- components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp index ee354ea..3d46303 100644 --- a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp +++ b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp @@ -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)