From 9f776eb517797ae3c61bbc4a67bba08347c688d8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 26 Apr 2026 21:40:52 -0500 Subject: [PATCH] [light] Shorten FIELDS comment --- esphome/components/light/automation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/esphome/components/light/automation.py b/esphome/components/light/automation.py index 04a79f1148..1062d6de3a 100644 --- a/esphome/components/light/automation.py +++ b/esphome/components/light/automation.py @@ -179,9 +179,8 @@ def _resolve_effect_index(config: ConfigType) -> int: async def light_control_to_code(config, action_id, template_arg, args): paren = await cg.get_variable(config[CONF_ID]) - # (config_key, setter_name, c++ type) — order and bit position must match - # LIGHT_CONTROL_FIELDS in automation.h. CONF_EFFECT has special-case - # handling below (lambda or static name resolution), so its setter is None. + # Order/bits must match LIGHT_CONTROL_FIELDS in automation.h. + # EFFECT has special handling below; setter=None skips the generic loop. FIELDS = ( (CONF_COLOR_MODE, "set_color_mode", ColorMode), (CONF_STATE, "set_state", cg.bool_),