mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Merge branch 'light_ram' into integration
This commit is contained in:
		| @@ -11,11 +11,11 @@ static const char *const TAG = "light"; | ||||
|  | ||||
| // Macro to reduce repetitive setter code | ||||
| #define IMPLEMENT_LIGHT_CALL_SETTER(name, type, flag) \ | ||||
|   LightCall &LightCall::set_##name(optional<type> name) { \ | ||||
|     if (name.has_value()) { \ | ||||
|       this->name##_ = name.value(); \ | ||||
|   LightCall &LightCall::set_##name(optional<type>(name)) { \ | ||||
|     if ((name).has_value()) { \ | ||||
|       this->name##_ = (name).value(); \ | ||||
|     } \ | ||||
|     this->set_flag_(flag, name.has_value()); \ | ||||
|     this->set_flag_(flag, (name).has_value()); \ | ||||
|     return *this; \ | ||||
|   } \ | ||||
|   LightCall &LightCall::set_##name(type name) { \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user