mirror of
https://github.com/esphome/esphome.git
synced 2025-09-07 22:02:22 +01:00
fix: update logging in dump_config to include output level and improve output handling in add_available_output
This commit is contained in:
@@ -84,7 +84,7 @@ void DynamicLamp::dump_config() {
|
||||
}
|
||||
for (uint8_t i = 0; i < 16; i++) {
|
||||
if (this->available_outputs_[i].active) {
|
||||
ESP_LOGCONFIG(TAG, "Using output with id %s as output number %" PRIu8 "", this->available_outputs_[i].output->id.c_str(), i);
|
||||
ESP_LOGCONFIG(TAG, "Using output with id .. having level %" PRIu16 " as output number %" PRIu8 "", static_cast<uint16_t>(this->available_outputs_[i].output->state * 1000), i);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -103,6 +103,7 @@ void DynamicLamp::add_available_output(output::FloatOutput * output) {
|
||||
output,
|
||||
counter,
|
||||
0, 0, 1.0, false
|
||||
}
|
||||
counter++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user