]> git.basschouten.com Git - openhab-addons.git/commit
[ecovacs] Handle invalid JSON responses properly (#16466)
authormaniac103 <dannybaumann@web.de>
Tue, 12 Mar 2024 18:08:35 +0000 (19:08 +0100)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2024 18:08:35 +0000 (19:08 +0100)
commitba0cf3fe1ccfc42d14216b2b5063d55897fb1e7d
tree20d07f3eb05b537590361fc26faa0b5b53ebaf9c
parent2edacebf3f5b3f0cb830d63378514a4f823337cf
[ecovacs] Handle invalid JSON responses properly (#16466)

The API has differing responses depending on device type. If our
understanding of the JSON format differs from that of the API, make sure
to properly set the thing OFFLINE and to log a meaningful message.

Related to #16187

Signed-off-by: Danny Baumann <dannybaumann@web.de>
bundles/org.openhab.binding.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/EcovacsApiException.java
bundles/org.openhab.binding.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/impl/EcovacsApiImpl.java