Device Types
convert_unit()
Features
Developer Notes
One-line unit conversion.
value (float) – The starting value for the conversion.
unit (str) – The starting unit for the conversion.
new_unit (str) – The desired unit for the conversion.
new_value (float) – The starting value, but converted to the new unit.