mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
Add config flow for integration sensor (#68288)
This commit is contained in:
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]
|
||||
Reference in New Issue
Block a user