* Add config flow to trend * Remove device_class from options flow * Add min_samples and import step to config flow * Fix import * Fixing tests and some cleanup * remove unneeded usefixtures * Apply code review suggestions * Re-add YAML support * Re-add reload service * Fix import * Apply code review suggestions * Add test coverage for yaml setup --------- Co-authored-by: G Johansson <goran.johansson@shiftit.se>
20 lines
523 B
Python
20 lines
523 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"
|
|
|
|
DEFAULT_MAX_SAMPLES = 2
|
|
DEFAULT_MIN_SAMPLES = 2
|
|
DEFAULT_MIN_GRADIENT = 0.0
|
|
DEFAULT_SAMPLE_DURATION = 0
|