mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Minor code cleanup in light components (#2162)
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net>
This commit is contained in:
		| @@ -19,7 +19,7 @@ void AddressableLight::call_setup() { | |||||||
|       ESP_LOGVV(TAG, "  [%2d] Color: R=%3u G=%3u B=%3u W=%3u", i, color.get_red_raw(), color.get_green_raw(), |       ESP_LOGVV(TAG, "  [%2d] Color: R=%3u G=%3u B=%3u W=%3u", i, color.get_red_raw(), color.get_green_raw(), | ||||||
|                 color.get_blue_raw(), color.get_white_raw()); |                 color.get_blue_raw(), color.get_white_raw()); | ||||||
|     } |     } | ||||||
|     ESP_LOGVV(TAG, ""); |     ESP_LOGVV(TAG, " "); | ||||||
|   }); |   }); | ||||||
| #endif | #endif | ||||||
| } | } | ||||||
|   | |||||||
| @@ -196,7 +196,6 @@ class FlickerLightEffect : public LightEffect { | |||||||
|     out.set_warm_white(remote.get_warm_white() * beta + current.get_warm_white() * alpha + |     out.set_warm_white(remote.get_warm_white() * beta + current.get_warm_white() * alpha + | ||||||
|                        (random_cubic_float() * this->intensity_)); |                        (random_cubic_float() * this->intensity_)); | ||||||
|  |  | ||||||
|     auto traits = this->state_->get_traits(); |  | ||||||
|     auto call = this->state_->make_call(); |     auto call = this->state_->make_call(); | ||||||
|     call.set_publish(false); |     call.set_publish(false); | ||||||
|     call.set_save(false); |     call.set_save(false); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user