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) |
| Decimal homeassistant.components.integration.sensor._Right.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.
| tuple[Decimal, Decimal] | None homeassistant.components.integration.sensor._Right.validate_states | ( | self, | |
| str | left, | ||
| str | right | ||
| ) |
Check state requirements for integration.
Reimplemented from homeassistant.components.integration.sensor._IntegrationMethod.