kappa_sdk.UnitConverter#

class kappa_sdk.UnitConverter(unit_dto)[source]#

Units converter is a static helper that converts a given value from and to internal units. Internal units are the ones that are used when data is returned by the KAPPA Automate or written back to. :param __units: list of dictionary of the different available units in KAPPA Automate

Methods

UnitConverter.convert_from_internal(unit, value)

Converts a given value from internal units.

UnitConverter.convert_to_internal(unit, value)

Converts a given value to internal units.

Parameters:

unit_dto (UnitSystemsDto)