* 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
15 lines
419 B
Python
15 lines
419 B
Python
"""Constant values for Trend integration."""
|
|
DOMAIN = "trend"
|
|
|
|
ATTR_ATTRIBUTE = "attribute"
|
|
ATTR_GRADIENT = "gradient"
|
|
ATTR_INVERT = "invert"
|
|
ATTR_MIN_GRADIENT = "min_gradient"
|
|
ATTR_SAMPLE_DURATION = "sample_duration"
|
|
ATTR_SAMPLE_COUNT = "sample_count"
|
|
|
|
CONF_INVERT = "invert"
|
|
CONF_MAX_SAMPLES = "max_samples"
|
|
CONF_MIN_GRADIENT = "min_gradient"
|
|
CONF_SAMPLE_DURATION = "sample_duration"
|
|
CONF_MIN_SAMPLES = "min_samples"
|