1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-04-02 00:27:49 +01:00

Numeric threshold selector: remove duplicate uom from input (#51275)

This commit is contained in:
Bram Kragten
2026-03-30 14:12:04 +02:00
committed by GitHub
parent 7f2a5ecc27
commit 072f70b49f

View File

@@ -287,7 +287,9 @@ export class HaNumericThresholdSelector extends LitElement {
const numberSelector = { const numberSelector = {
number: { number: {
...this.selector.numeric_threshold?.number, ...this.selector.numeric_threshold?.number,
...(effectiveUnit ? { unit_of_measurement: effectiveUnit } : {}), ...(!showUnit && effectiveUnit
? { unit_of_measurement: effectiveUnit }
: {}),
}, },
}; };
const entitySelector = { const entitySelector = {