mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-29 15:57:20 +00:00
Fix a bug in the climate entity more info card (#12973)
This commit is contained in:
parent
e765d7749c
commit
276b6f4d1f
@ -5,6 +5,6 @@ export const clamp = (value: number, min: number, max: number) =>
|
|||||||
export const conditionalClamp = (value: number, min?: number, max?: number) => {
|
export const conditionalClamp = (value: number, min?: number, max?: number) => {
|
||||||
let result: number;
|
let result: number;
|
||||||
result = min ? Math.max(value, min) : value;
|
result = min ? Math.max(value, min) : value;
|
||||||
result = max ? Math.min(value, max) : value;
|
result = max ? Math.min(result, max) : result;
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user