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:
Jan-Philipp Benecke 2023-11-30 15:41:58 +01:00 committed by GitHub
parent aa4382e091
commit f59588b413
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 115 additions and 18 deletions

View file

@ -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"