]> git.basschouten.com Git - openhab-addons.git/commit
[mqtt] support mired<->Kelvin unit conversion (#13575)
authorCody Cutrer <cody@cutrer.us>
Sat, 22 Oct 2022 18:07:33 +0000 (12:07 -0600)
committerGitHub <noreply@github.com>
Sat, 22 Oct 2022 18:07:33 +0000 (20:07 +0200)
commit5f6241cbc62b8c1cf18bbe94aab2de0f683a8de1
tree2c2af2ab3e5b02017b5a8e02a994a45711d67071
parent790e5d58c46adf0e3efb6b4ebc9628bdaadfbcd1
[mqtt] support mired<->Kelvin unit conversion (#13575)

Just have to use the newer toInvertibleUnit method that allows
the dimension to change.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/values/NumberValue.java
bundles/org.openhab.binding.mqtt.generic/src/test/java/org/openhab/binding/mqtt/generic/values/ValueTests.java