Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.integration.sensor._IntegrationMethod Class Reference
Inheritance diagram for homeassistant.components.integration.sensor._IntegrationMethod:
[legend]
Collaboration diagram for homeassistant.components.integration.sensor._IntegrationMethod:
[legend]

Public Member Functions

Decimal calculate_area_with_one_state (self, Decimal elapsed_time, Decimal constant_state)
 
Decimal calculate_area_with_two_states (self, Decimal elapsed_time, Decimal left, Decimal right)
 
tuple[Decimal, Decimal]|None validate_states (self, str left, str right)
 

Static Public Member Functions

_IntegrationMethod from_name (str method_name)
 

Detailed Description

Definition at line 109 of file sensor.py.

Member Function Documentation

◆ calculate_area_with_one_state()

Decimal homeassistant.components.integration.sensor._IntegrationMethod.calculate_area_with_one_state (   self,
Decimal  elapsed_time,
Decimal   constant_state 
)

Definition at line 124 of file sensor.py.

◆ calculate_area_with_two_states()

Decimal homeassistant.components.integration.sensor._IntegrationMethod.calculate_area_with_two_states (   self,
Decimal  elapsed_time,
Decimal  left,
Decimal   right 
)

◆ from_name()

_IntegrationMethod homeassistant.components.integration.sensor._IntegrationMethod.from_name ( str  method_name)
static

Definition at line 111 of file sensor.py.

◆ validate_states()

tuple[Decimal, Decimal] | None homeassistant.components.integration.sensor._IntegrationMethod.validate_states (   self,
str  left,
str  right 
)

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