Skip to content

Commit

Permalink
[ONEIOT-108] Simulated Device Preferences: added 'bool' input
Browse files Browse the repository at this point in the history
Both 'boolean' and 'bool' input types are supposed to be supported.
  • Loading branch information
tpmanley committed Nov 8, 2019
1 parent 481276e commit ec5c2ec
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -123,6 +128,7 @@ def parse(description) {

def updated() {
Map newPreferences = [
booleanInput: booleanInput,
boolInput: boolInput,
decInput: decInput,
enumInput: enumInput,
Expand Down

0 comments on commit ec5c2ec

Please sign in to comment.