mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 09:54:19 -07:00
[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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user