mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	refactor: update write_state method to use active_lamps for improved clarity
This commit is contained in:
		| @@ -4,7 +4,7 @@ namespace esphome { | |||||||
| namespace dynamic_lamp { | namespace dynamic_lamp { | ||||||
|  |  | ||||||
| void DynamicLamp::write_state(float state) { | void DynamicLamp::write_state(float state) { | ||||||
|   if (this->available_outputs_[this->lamp_].set_level(state)) |   if (this->active_lamps_[this->lamp_].set_level(state)) | ||||||
|   { |   { | ||||||
|     this->state_ = state; |     this->state_ = state; | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user