-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from custom-components/Vars_to_configuration
Vars to configuration
- Loading branch information
Showing
4 changed files
with
193 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""Constants for the Xiaomi Mi temperature and humidity monitor integration.""" | ||
|
||
# Configuration options | ||
CONF_ROUNDING = "rounding" | ||
CONF_DECIMALS = "decimals" | ||
CONF_PERIOD = "period" | ||
CONF_LOG_SPIKES = "log_spikes" | ||
CONF_USE_MEDIAN = "use_median" | ||
CONF_HCITOOL_ACTIVE = "hcitool_active" | ||
|
||
# Default values for configuration options | ||
DEFAULT_ROUNDING = True | ||
DEFAULT_DECIMALS = 2 | ||
DEFAULT_PERIOD = 60 | ||
DEFAULT_LOG_SPIKES = False | ||
DEFAULT_USE_MEDIAN = False | ||
DEFAULT_HCITOOL_ACTIVE = False | ||
|
||
"""Fixed constants.""" | ||
|
||
# Sensor measurement limits to exclude erroneous spikes from the results | ||
CONF_TMIN = -40.0 | ||
CONF_TMAX = 60.0 | ||
CONF_HMIN = 0.0 | ||
CONF_HMAX = 99.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.