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

Public Member Functions

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)
 
- Public Member Functions inherited from homeassistant.components.integration.sensor._IntegrationMethod
Decimal calculate_area_with_one_state (self, Decimal elapsed_time, Decimal constant_state)
 

Additional Inherited Members

- Static Public Member Functions inherited from homeassistant.components.integration.sensor._IntegrationMethod
_IntegrationMethod from_name (str method_name)
 

Detailed Description

Definition at line 144 of file sensor.py.

Member Function Documentation

◆ calculate_area_with_two_states()

Decimal homeassistant.components.integration.sensor._Left.calculate_area_with_two_states (   self,
Decimal  elapsed_time,
Decimal  left,
Decimal   right 
)
Calculate area given two states.

Reimplemented from homeassistant.components.integration.sensor._IntegrationMethod.

Definition at line 145 of file sensor.py.

◆ validate_states()

tuple[Decimal, Decimal] | None homeassistant.components.integration.sensor._Left.validate_states (   self,
str  left,
str  right 
)
Check state requirements for integration.

Reimplemented from homeassistant.components.integration.sensor._IntegrationMethod.

Definition at line 150 of file sensor.py.


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