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:

View File

@@ -1,7 +1,7 @@
{
"domain": "ha_knx_bridge",
"name": "HA KNX Bridge",
"version": "0.0.24",
"version": "0.0.25",
"config_flow": true,
"documentation": "https://github.com/bahmcloud/HA-KNX-Bridge",
"issue_tracker": "https://github.com/bahmcloud/HA-KNX-Bridge/issues",