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:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user