From 96f52da647e26c347d18104b5f93e91bbf0f69af Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 19 Feb 2026 15:04:41 -0600 Subject: [PATCH] [light] Fix outdated comment on gamma_tables dict Only the forward table is stored now; reverse gamma is computed via binary search on the forward table. --- esphome/components/light/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/esphome/components/light/__init__.py b/esphome/components/light/__init__.py index f6bb627a4e..350fb67afd 100644 --- a/esphome/components/light/__init__.py +++ b/esphome/components/light/__init__.py @@ -72,9 +72,7 @@ DOMAIN = "light" @dataclass class LightData: - gamma_tables: dict = field( - default_factory=dict - ) # gamma_value -> (fwd_arr, rev_arr) + gamma_tables: dict = field(default_factory=dict) # gamma_value -> fwd_arr def _get_data() -> LightData: