mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	fix: simplify logging in dump_config and set output state for active outputs
This commit is contained in:
		| @@ -84,7 +84,8 @@ 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 .. having level %" PRIu16 " as output number %" PRIu8 "", static_cast<uint16_t>(this->available_outputs_[i].output->state * 1000), i); | ||||
|       ESP_LOGCONFIG(TAG, "Using output with id .. as output number %" PRIu8 "", i); | ||||
|       this->available_outputs_[i].output->write_state(0.256); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user