added default location trigger mode value

This commit is contained in:
Anton Bracke 2019-11-14 15:12:40 +01:00
parent d122b3e329
commit 7e712a5fc4

View file

@ -121,7 +121,7 @@ public class TriggerLocation extends Trigger {
longitude.setValue(JsonHelper.safeGetDouble(d, "longitude"));
distance.setValue(JsonHelper.safeGetDouble(d, "distance"));
name.setValue(JsonHelper.safeGetString(d, "name"));
mode.setValue(JsonHelper.safeGetString(d, "mode"));
mode.setValue(JsonHelper.safeGetString(d, "mode", modeEntered));
lastRun = JsonHelper.safeGetLong(d, "lastRun");
} catch (Exception e) {
e.printStackTrace();