Tune relative dimming steps

This commit is contained in:
2026-02-15 21:00:24 +01:00
parent 082ce93334
commit c8d05acae9
5 changed files with 15 additions and 11 deletions

View File

@@ -1678,13 +1678,13 @@ def _relative_dimming_step(value: int) -> tuple[str, int] | None:
direction = "up"
step = value - 8
percent_map = {
1: 100,
2: 50,
3: 25,
4: 13,
5: 6,
6: 3,
7: 2,
1: 10,
2: 8,
3: 6,
4: 4,
5: 3,
6: 2,
7: 1,
}
percent = percent_map.get(step)
if percent is None: