Button to play sample alert tone

This commit is contained in:
2026-05-21 20:42:13 +00:00
parent fd14ff3434
commit cc9af7e824
7 changed files with 7 additions and 72 deletions
@@ -34,9 +34,6 @@ void RATGDONumber::dump_config()
case RATGDO_CLOSING_DURATION:
ESP_LOGCONFIG(TAG, " Type: Closing Duration");
break;
case RATGDO_TARGET_DISTANCE_MEASUREMENT:
ESP_LOGCONFIG(TAG, " Type: Target Distance Measurement");
break;
default:
break;
}
@@ -79,11 +76,6 @@ void RATGDONumber::setup()
this->update_state(value);
});
break;
case RATGDO_TARGET_DISTANCE_MEASUREMENT:
// this->parent_->subscribe_target_distance_measurement([=](float value) {
// this->update_state(value);
// });
break;
default:
break;
}
@@ -107,11 +99,6 @@ void RATGDONumber::set_number_type(NumberType number_type_)
this->traits.set_min_value(0x539);
this->traits.set_max_value(0x7ff539);
break;
case RATGDO_TARGET_DISTANCE_MEASUREMENT:
this->traits.set_step(1);
this->traits.set_min_value(5);
this->traits.set_max_value(3500);
break;
default:
break;
}
@@ -142,9 +129,6 @@ void RATGDONumber::control(float value)
value = normalize_client_id(value);
this->parent_->call_protocol(SetClientID { static_cast<uint32_t>(value) });
break;
case RATGDO_TARGET_DISTANCE_MEASUREMENT:
this->parent_->set_target_distance_measurement(value);
break;
default:
break;
}