Make the minimum number of samples used by the trend sensor configurable (#101102)
* Make the minimum of samples configurable & raise issue when min_samples > max_samples * Wording * Remove issue creation and use a custom schema validator * Remove issue from strings.json * Add test for validator and fix error message
This commit is contained in:
parent
aa4382e091
commit
f59588b413
3 changed files with 115 additions and 18 deletions
|
@ -12,3 +12,4 @@ CONF_INVERT = "invert"
|
|||
CONF_MAX_SAMPLES = "max_samples"
|
||||
CONF_MIN_GRADIENT = "min_gradient"
|
||||
CONF_SAMPLE_DURATION = "sample_duration"
|
||||
CONF_MIN_SAMPLES = "min_samples"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue