Add config flow for integration sensor (#68288)
This commit is contained in:
parent
ad1e43e083
commit
0655ebbd84
10 changed files with 471 additions and 30 deletions
14
homeassistant/components/integration/const.py
Normal file
14
homeassistant/components/integration/const.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
"""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"
|
||||
|
||||
METHOD_TRAPEZOIDAL = "trapezoidal"
|
||||
METHOD_LEFT = "left"
|
||||
METHOD_RIGHT = "right"
|
||||
INTEGRATION_METHODS = [METHOD_TRAPEZOIDAL, METHOD_LEFT, METHOD_RIGHT]
|
Loading…
Add table
Add a link
Reference in a new issue