Home Assistant Unofficial Reference 2024.12.1
sensor.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.integration.sensor._IntegrationMethod
 
class  homeassistant.components.integration.sensor._IntegrationTrigger
 
class  homeassistant.components.integration.sensor._Left
 
class  homeassistant.components.integration.sensor._Right
 
class  homeassistant.components.integration.sensor._Trapezoidal
 
class  homeassistant.components.integration.sensor.IntegrationSensor
 
class  homeassistant.components.integration.sensor.IntegrationSensorExtraStoredData
 

Namespaces

 homeassistant.components.integration.sensor
 

Functions

Decimal|None homeassistant.components.integration.sensor._decimal_state (str state)
 
None homeassistant.components.integration.sensor.async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
None homeassistant.components.integration.sensor.async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 homeassistant.components.integration.sensor._LOGGER = logging.getLogger(__name__)
 
int homeassistant.components.integration.sensor.DEFAULT_ROUND = 3
 
dictionary homeassistant.components.integration.sensor.DEVICE_CLASS_MAP
 
 homeassistant.components.integration.sensor.Final
 
 homeassistant.components.integration.sensor.PLATFORM_SCHEMA
 
dictionary homeassistant.components.integration.sensor.UNIT_PREFIXES = {None: 1, "k": 10**3, "M": 10**6, "G": 10**9, "T": 10**12}
 
dictionary homeassistant.components.integration.sensor.UNIT_TIME