mirror of
https://github.com/home-assistant/core.git
synced 2025-11-05 17:09:32 +00:00
Co-authored-by: G Johansson <goran.johansson@shiftit.se> Co-authored-by: Norbert Rittel <norbert@rittel.de> Co-authored-by: Erik Montnemery <erik@montnemery.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
23 lines
674 B
Python
23 lines
674 B
Python
"""Consts for using in modules."""
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN = "bayesian"
|
|
PLATFORMS = [Platform.BINARY_SENSOR]
|
|
ATTR_OBSERVATIONS = "observations"
|
|
ATTR_OCCURRED_OBSERVATION_ENTITIES = "occurred_observation_entities"
|
|
ATTR_PROBABILITY = "probability"
|
|
ATTR_PROBABILITY_THRESHOLD = "probability_threshold"
|
|
|
|
CONF_OBSERVATIONS = "observations"
|
|
CONF_PRIOR = "prior"
|
|
CONF_TEMPLATE = "template"
|
|
CONF_NUMERIC_STATE = "numeric_state"
|
|
CONF_PROBABILITY_THRESHOLD = "probability_threshold"
|
|
CONF_P_GIVEN_F = "prob_given_false"
|
|
CONF_P_GIVEN_T = "prob_given_true"
|
|
CONF_TO_STATE = "to_state"
|
|
|
|
DEFAULT_NAME = "Bayesian Binary Sensor"
|
|
DEFAULT_PROBABILITY_THRESHOLD = 0.5
|