From ec5c2ecd822a1fa00245f9095b9b73455715700f Mon Sep 17 00:00:00 2001 From: Tom Manley Date: Fri, 8 Nov 2019 16:12:45 -0600 Subject: [PATCH] [ONEIOT-108] Simulated Device Preferences: added 'bool' input Both 'boolean' and 'bool' input types are supposed to be supported. --- .../simulated-device-preferences.groovy | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devicetypes/smartthings/testing/simulated-device-preferences.src/simulated-device-preferences.groovy b/devicetypes/smartthings/testing/simulated-device-preferences.src/simulated-device-preferences.groovy index 415a49b92f4..6851e13bf9d 100644 --- a/devicetypes/smartthings/testing/simulated-device-preferences.src/simulated-device-preferences.groovy +++ b/devicetypes/smartthings/testing/simulated-device-preferences.src/simulated-device-preferences.groovy @@ -47,11 +47,16 @@ metadata { input("enumInput3", "enum", title: "Enum Title 3 (no options)", description: "Enum Description 3 (no options)", required: false) - input("boolInput", "boolean", + input("booleanInput", "boolean", title: "Boolean Title", description: "Boolean Description", defaultValue: "true", required: false) + input("boolInput", "bool", + title: "Bool Title", + description: "Bool Description", + defaultValue: false, + required: false) } section { input(title: "Section 2 Title", @@ -123,6 +128,7 @@ def parse(description) { def updated() { Map newPreferences = [ + booleanInput: booleanInput, boolInput: boolInput, decInput: decInput, enumInput: enumInput,