Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tuya.util Namespace Reference

Functions

float remap_value (float value, float from_min=0, float from_max=255, float to_min=0, float to_max=255, bool reverse=False)
 

Detailed Description

Utility methods for the Tuya integration.

Function Documentation

◆ remap_value()

float homeassistant.components.tuya.util.remap_value ( float  value,
float   from_min = 0,
float   from_max = 255,
float   to_min = 0,
float   to_max = 255,
bool   reverse = False 
)
Remap a value from its current range, to a new range.

Definition at line 6 of file util.py.