mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-31 05:24:24 +02:00
Update EvccSiteHandler.java (#19165)
Hotfixing bug where smartCostType was tried to set even it was null Signed-off-by: Marcel Goerentz <57457529+marcelGoerentz@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ public class EvccSiteHandler extends EvccBaseThingHandler {
|
||||
}
|
||||
|
||||
// Set the smart cost type
|
||||
if (state.has("smartCostType")) {
|
||||
if (state.has("smartCostType") && !state.get("smartCostType").isJsonNull()) {
|
||||
smartCostType = state.get("smartCostType").getAsString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user