Add Compensation Integration (#41675)
* Add Compensation Integration Adds the Compensation Integration * Add Requirements add missing requirements to compensation integration * Fix for tests Fix files after tests * Fix isort ran isort * Handle ADR-0007 Change the configuration to deal with ADR-0007 * fix flake8 Fix flake8 * Added Error Trapping Catch errors. Raise Rank Warnings but continue. Fixed bad imports * fix flake8 & pylint * fix isort.... again * fix tests & comments fix tests and comments * fix flake8 * remove discovery message * Fixed Review changes * Fixed review requests. * Added test to test get more coverage. * Roll back numpy requirement Roll back numpy requirement to match other integrations. * Fix flake8 * Fix requested changes Removed some necessary comments. Changed a test case to be more readable. * Fix doc strings and continue * Fixed a few test case doc strings * Removed a continue/else * Remove periods from logger Removed periods from _LOGGER errors. * Fixes changed name to unqiue_id. implemented suggested changes. * Add name and fix unique_id * removed conf name and auto construct it
This commit is contained in:
parent
23fae255ff
commit
545fe7a7be
9 changed files with 537 additions and 0 deletions
16
homeassistant/components/compensation/const.py
Normal file
16
homeassistant/components/compensation/const.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
"""Compensation constants."""
|
||||
DOMAIN = "compensation"
|
||||
|
||||
SENSOR = "compensation"
|
||||
|
||||
CONF_COMPENSATION = "compensation"
|
||||
CONF_DATAPOINTS = "data_points"
|
||||
CONF_DEGREE = "degree"
|
||||
CONF_PRECISION = "precision"
|
||||
CONF_POLYNOMIAL = "polynomial"
|
||||
|
||||
DATA_COMPENSATION = "compensation_data"
|
||||
|
||||
DEFAULT_DEGREE = 1
|
||||
DEFAULT_NAME = "Compensation"
|
||||
DEFAULT_PRECISION = 2
|
Loading…
Add table
Add a link
Reference in a new issue