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

Public Member Functions

dict[str, Any] as_dict (self)
 
Self|None from_dict (cls, dict[str, Any] restored)
 

Detailed Description

Object to hold extra stored data.

Definition at line 188 of file sensor.py.

Member Function Documentation

◆ as_dict()

dict[str, Any] homeassistant.components.integration.sensor.IntegrationSensorExtraStoredData.as_dict (   self)
Return a dict representation of the utility sensor data.

Reimplemented from homeassistant.components.sensor.SensorExtraStoredData.

Definition at line 194 of file sensor.py.

◆ from_dict()

Self | None homeassistant.components.integration.sensor.IntegrationSensorExtraStoredData.from_dict (   cls,
dict[str, Any]  restored 
)
Initialize a stored sensor state from a dict.

Reimplemented from homeassistant.components.sensor.SensorExtraStoredData.

Definition at line 204 of file sensor.py.


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