feat: add homeassistant integration (#578)
This commit is contained in:
@@ -15,3 +15,7 @@ export const formatNumber = (value: number, decimalPlaces: number) => {
|
||||
}
|
||||
return value.toFixed(decimalPlaces);
|
||||
};
|
||||
|
||||
export const randomInt = (min: number, max: number) => {
|
||||
return Math.floor(Math.random() * (max - min + 1) + min);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user