]> git.basschouten.com Git - openhab-addons.git/commit
[hue] Shrink step size for increase/decrease commands (#16538)
authormaniac103 <dannybaumann@web.de>
Mon, 18 Mar 2024 10:56:42 +0000 (11:56 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Mar 2024 10:56:42 +0000 (11:56 +0100)
commitafa65f251d156c44e0973b723c04559c5f05f348
treeb88682ee77d2ed24acfc25fde9f9b69f30c3023b
parent26fd8c65288580d48179600c5ab40fa3693c2ad9
[hue] Shrink step size for increase/decrease commands (#16538)

A step size of 30 with a value range of 0..100 leads to only 4 steps,
which additionally are spaced unevenly. Shrink the step size to 10,
which yields 10 evenly spaced steps.
While at it, also deduplicate the increase/decrease code, which had
slightly different implementation in both branches.

Signed-off-by: Danny Baumann <dannybaumann@web.de>
bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/api/dto/clip2/Resource.java
bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/handler/Clip2ThingHandler.java