Skip to content

Commit

Permalink
Fix the config schema
Browse files Browse the repository at this point in the history
It was missing a comma.
  • Loading branch information
mairas committed Oct 30, 2024
1 parent e2d457b commit 541170e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/sensesp/transforms/threshold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@

namespace sensesp {

static const char kSchemaTemplate[] PROGMEM = R"({
"type": "object",
"properties": {
"min": { "title": "Minimum value", "type": "!!TYPE!!", "description" : "Minimum value to be 'in range'" },
"max": { "title": "Maximum value", "type": "!!TYPE!!", "description" : "Maximum value to be 'in range'" },
"in_range": { "title": "In range value", "type": "boolean", "description" : "Output value when input value is 'in range'" }
"out_range": { "title": "Out of range value", "type": "boolean", "description" : "Output value when input value is out of range" }
}
})";
static const char kSchemaTemplate[] =
R"({"type":"object","properties":{"min":{"title":"Minimum value","type":"!!TYPE!!","description":"Minimum value to be 'in range'"},"max":{"title":"Maximum value","type":"!!TYPE!!","description":"Maximum value to be 'in range'"},"in_range":{"title":"In range value","type":"boolean","description":"When checked, output true when input value is 'in range'"}}})";

const String ConfigSchema(const ThresholdTransform<float>& obj) {
String schema = kSchemaTemplate;
Expand Down

0 comments on commit 541170e

Please sign in to comment.