|
| float | convert (cls, float value, str|None from_unit, str|None to_unit) |
| |
| Callable[[float], float] | converter_factory (cls, str|None from_unit, str|None to_unit) |
| |
| Callable[[float|None], float|None] | converter_factory_allow_none (cls, str|None from_unit, str|None to_unit) |
| |
| float | get_unit_ratio (cls, str|None from_unit, str|None to_unit) |
| |
Utility to convert pressure values.
Definition at line 357 of file unit_conversion.py.
◆ UNIT_CLASS
| string homeassistant.util.unit_conversion.PressureConverter.UNIT_CLASS = "pressure" |
|
static |
◆ VALID_UNITS
| dictionary homeassistant.util.unit_conversion.PressureConverter.VALID_UNITS |
|
static |
Initial value:= {
UnitOfPressure.PA,
UnitOfPressure.HPA,
UnitOfPressure.KPA,
UnitOfPressure.BAR,
UnitOfPressure.CBAR,
UnitOfPressure.MBAR,
UnitOfPressure.INHG,
UnitOfPressure.PSI,
UnitOfPressure.MMHG,
}
Definition at line 374 of file unit_conversion.py.
The documentation for this class was generated from the following file: