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:
Marcel Goerentz
2025-08-15 12:58:30 +02:00
committed by GitHub
parent 05aa010ad8
commit 605e9ba668
@@ -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();
}