Add config flow for integration sensor (#68288)

This commit is contained in:
Erik Montnemery 2022-03-18 09:52:17 +01:00 committed by GitHub
parent ad1e43e083
commit 0655ebbd84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 471 additions and 30 deletions

View 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]