mirror of https://github.com/home-assistant/core
16 lines
444 B
Python
16 lines
444 B
Python
"""Constants for the Integration - Riemann sum integral integration."""
|
|
|
|
DOMAIN = "integration"
|
|
|
|
CONF_ROUND_DIGITS = "round"
|
|
CONF_SOURCE_SENSOR = "source"
|
|
CONF_UNIT_OF_MEASUREMENT = "unit"
|
|
CONF_UNIT_PREFIX = "unit_prefix"
|
|
CONF_UNIT_TIME = "unit_time"
|
|
CONF_MAX_SUB_INTERVAL = "max_sub_interval"
|
|
|
|
METHOD_TRAPEZOIDAL = "trapezoidal"
|
|
METHOD_LEFT = "left"
|
|
METHOD_RIGHT = "right"
|
|
INTEGRATION_METHODS = [METHOD_TRAPEZOIDAL, METHOD_LEFT, METHOD_RIGHT]
|