]> git.basschouten.com Git - openhab-addons.git/commit
[homematic] Fix invalid default values ending up in the thing type (#12437)
authorFlole998 <Flole998@users.noreply.github.com>
Mon, 7 Mar 2022 20:51:17 +0000 (21:51 +0100)
committerGitHub <noreply@github.com>
Mon, 7 Mar 2022 20:51:17 +0000 (21:51 +0100)
commit0e0b9afe087ef1d4ee74e3059b2a60c5e6e27419
treeef394eab26472c71303a16f28887ce0af8bea84b
parent38a14b821d7cc373628590db9947b0640de29c05
[homematic] Fix invalid default values ending up in the thing type (#12437)

Sometimes invalid default values ended up in the default value for a channel of a thing type. Initializing the thing would fail completely complaining that it is not an allowed option. This patch makes sure those values are actually valid and attempts to correct them if they are invalid.

Signed-off-by: Flole <flole@flole.de>
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGeneratorImpl.java