Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.bayesian.helpers.Observation Class Reference

Public Member Functions

bool is_mirror (self, Observation other)
 
str|None template (self)
 
dict[str, str|float|bool|Noneto_dict (self)
 

Public Attributes

 platform
 

Static Public Attributes

 bool
 
 default_factory
 
 None
 
 UUID
 

Detailed Description

Representation of a sensor or template observation.

Either entity_id or value_template should be non-None.

Definition at line 21 of file helpers.py.

Member Function Documentation

◆ is_mirror()

bool homeassistant.components.bayesian.helpers.Observation.is_mirror (   self,
Observation  other 
)
Dectects whether given observation is a mirror of this one.

Definition at line 61 of file helpers.py.

◆ template()

str | None homeassistant.components.bayesian.helpers.Observation.template (   self)
Not all observations have templates and we want to get template strings.

Definition at line 70 of file helpers.py.

◆ to_dict()

dict[str, str | float | bool | None] homeassistant.components.bayesian.helpers.Observation.to_dict (   self)
Represent Class as a Dict for easier serialization.

Definition at line 39 of file helpers.py.

Member Data Documentation

◆ bool

homeassistant.components.bayesian.helpers.Observation.bool
static

Definition at line 36 of file helpers.py.

◆ default_factory

homeassistant.components.bayesian.helpers.Observation.default_factory
static

Definition at line 37 of file helpers.py.

◆ None

homeassistant.components.bayesian.helpers.Observation.None
static

Definition at line 35 of file helpers.py.

◆ platform

homeassistant.components.bayesian.helpers.Observation.platform

Definition at line 64 of file helpers.py.

◆ UUID

homeassistant.components.bayesian.helpers.Observation.UUID
static

Definition at line 37 of file helpers.py.


The documentation for this class was generated from the following file: