improve dump_config output of sensors.

This commit is contained in:
Your Name
2023-03-14 16:04:45 +01:00
parent 223b59a228
commit 3bc1015f79
6 changed files with 12 additions and 12 deletions

View File

@@ -5,7 +5,7 @@
namespace esphome {
namespace truma_inetbox {
static const char *const TAG = "truma_inetbox.sensor";
static const char *const TAG = "truma_inetbox.heater_number";
void TrumaHeaterNumber::setup() {
this->parent_->register_listener([this](const StatusFrameHeater *status_heater) {
@@ -38,7 +38,7 @@ void TrumaHeaterNumber::control(float value) {
}
void TrumaHeaterNumber::dump_config() {
ESP_LOGCONFIG("", "Truma Heater Number");
LOG_NUMBER("", "Truma Heater Number", this);
ESP_LOGCONFIG(TAG, " Type '%s'", enum_to_c_str(this->type_));
}
} // namespace truma_inetbox