]> git.basschouten.com Git - openhab-addons.git/commit
[homekit] don't pre-fill enums from switches if metadata has enum values (#17142)
authorCody Cutrer <cody@cutrer.us>
Thu, 25 Jul 2024 07:16:41 +0000 (01:16 -0600)
committerGitHub <noreply@github.com>
Thu, 25 Jul 2024 07:16:41 +0000 (09:16 +0200)
commita66495a707a7cb4c91a7c5ffa99827d437b0e429
tree6c962b7c679c76472beb19684a4fc43ef58bd3b1
parent9362fcccdcd9a2447d5271d1c0f913b9f03c9933
[homekit] don't pre-fill enums from switches if metadata has enum values (#17142)

this is especially important when linking a many-valued enum (such as
CurrentHeatingCoolingState) to a switch, and you want to use a value
beyond 0 and 1 (i.e. OFF (0) and COOL (2)).

Signed-off-by: Cody Cutrer <cody@cutrer.us>
bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitCharacteristicFactory.java