mirror of
https://github.com/bahmcloud/HA-KNX-Bridge.git
synced 2026-04-07 09:11:14 +00:00
Tune relative dimming steps
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user