Home Assistant Unofficial Reference 2024.12.1
validate.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.energy.validate.EnergyPreferencesValidation
 
class  homeassistant.components.energy.validate.ValidationIssue
 
class  homeassistant.components.energy.validate.ValidationIssues
 

Namespaces

 homeassistant.components.energy.validate
 

Functions

None homeassistant.components.energy.validate._async_validate_auto_generated_cost_entity (HomeAssistant hass, str energy_entity_id, ValidationIssues issues)
 
None homeassistant.components.energy.validate._async_validate_cost_stat (HomeAssistant hass, dict[str, tuple[int, recorder.models.StatisticMetaData]] metadata, str stat_id, ValidationIssues issues)
 
None homeassistant.components.energy.validate._async_validate_price_entity (HomeAssistant hass, str entity_id, ValidationIssues issues, tuple[str,...] allowed_units, str unit_error)
 
None homeassistant.components.energy.validate._async_validate_usage_stat (HomeAssistant hass, dict[str, tuple[int, recorder.models.StatisticMetaData]] metadata, str stat_id, Sequence[str] allowed_device_classes, Mapping[str, Sequence[str]] allowed_units, str unit_error, ValidationIssues issues)
 
dict[str, str]|None homeassistant.components.energy.validate._get_placeholders (HomeAssistant hass, str issue_type)
 
EnergyPreferencesValidation homeassistant.components.energy.validate.async_validate (HomeAssistant hass)
 

Variables

string homeassistant.components.energy.validate.ENERGY_PRICE_UNIT_ERROR = "entity_unexpected_unit_energy_price"
 
 homeassistant.components.energy.validate.ENERGY_PRICE_UNITS
 
string homeassistant.components.energy.validate.ENERGY_UNIT_ERROR = "entity_unexpected_unit_energy"
 
tuple homeassistant.components.energy.validate.ENERGY_USAGE_DEVICE_CLASSES = (sensor.SensorDeviceClass.ENERGY,)
 
string homeassistant.components.energy.validate.GAS_PRICE_UNIT_ERROR = "entity_unexpected_unit_gas_price"
 
 homeassistant.components.energy.validate.GAS_PRICE_UNITS
 
string homeassistant.components.energy.validate.GAS_UNIT_ERROR = "entity_unexpected_unit_gas"
 
tuple homeassistant.components.energy.validate.GAS_USAGE_DEVICE_CLASSES
 
string homeassistant.components.energy.validate.WATER_PRICE_UNIT_ERROR = "entity_unexpected_unit_water_price"
 
 homeassistant.components.energy.validate.WATER_PRICE_UNITS
 
string homeassistant.components.energy.validate.WATER_UNIT_ERROR = "entity_unexpected_unit_water"
 
tuple homeassistant.components.energy.validate.WATER_USAGE_DEVICE_CLASSES = (sensor.SensorDeviceClass.WATER,)