mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	fix: update output logging to use active status and output_id in DynamicLamp
This commit is contained in:
		| @@ -76,8 +76,8 @@ void DynamicLamp::dump_config() { | ||||
|       this->save_mode_ = 0; | ||||
|   } | ||||
|   for (uint8_t i = 0; i < 16; i++) { | ||||
|     if (this->available_outputs_[i] != "") { | ||||
|       ESP_LOGCONFIG(TAG, "Using output with id %s as output number %" PRIu8 "", this->available_outputs_[i].c_str(), 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, i); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -44,7 +44,7 @@ class DynamicLamp : public Component { | ||||
|   void add_lamp_output_(uint8_t lamp_number, LinkedOutput output); | ||||
|   void restore_lamp_values_(uint8_t lamp_number); | ||||
|   void set_lamp_values_(uint8_t lamp_number, bool active, uint16_t selected_outputs, uint8_t mode, uint8_t mode_value); | ||||
|   size_t index_of_(Iter first, Iter last, typename const std::iterator_traits<Iter>::value_type& x) | ||||
|   size_t index_of_(Iter first, Iter last, typename const std::iterator_traits<Iter>::value_type& x); | ||||
|   std::string_view ltrim_(std::string_view str); | ||||
|   std::string_view rtrim_(std::string_view str); | ||||
|   std::string_view trim_(std::string_view str); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user