mirror of
https://github.com/bahmcloud/HA-KNX-Bridge.git
synced 2026-04-06 18:01: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:
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user