]> git.basschouten.com Git - openhab-addons.git/commit
[nanoleaf] Bugfix: Handle non-integer panel ids (#13951)
authorJørgen Austvik <jaustvik@acm.org>
Wed, 14 Dec 2022 19:15:47 +0000 (20:15 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Dec 2022 19:15:47 +0000 (20:15 +0100)
commit79060f3c8f77cdf8dc323561d5600437cc77765e
tree92f13d9ae673207e91b14c90c0ffcf352a305bc5
parentd4ec220925793756db464c92edb4d95061c91363
[nanoleaf] Bugfix: Handle non-integer panel ids (#13951)

Panel ids are sometimes returned as BigInteger

We haven't been able to understand why this happens somewhere and
somewhere not, but this is an sledgehammer attempt to fix it quickly
to unblock users, and then we will try to understand it later.

Discussions:
https://community.openhab.org/t/java-lang-classcastexception-class-java-math-bigdecimal-cannot-be-cast-to-class-java-lang-integer/142035/16
https://community.openhab.org/t/nanoleaf-binding-oh3-stabilization-update/116300/61

Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/handler/NanoleafPanelHandler.java