mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Use template selector in numeric state templates (#13428)
This commit is contained in:
parent
bbc5b02a22
commit
82f48d106f
@ -99,7 +99,7 @@ export default class HaNumericStateCondition extends LitElement {
|
|||||||
{ name: "below", selector: { text: {} } },
|
{ name: "below", selector: { text: {} } },
|
||||||
{
|
{
|
||||||
name: "value_template",
|
name: "value_template",
|
||||||
selector: { text: { multiline: true } },
|
selector: { template: {} },
|
||||||
},
|
},
|
||||||
] as const
|
] as const
|
||||||
);
|
);
|
||||||
|
@ -95,7 +95,7 @@ export class HaNumericStateTrigger extends LitElement {
|
|||||||
{ name: "below", selector: { text: {} } },
|
{ name: "below", selector: { text: {} } },
|
||||||
{
|
{
|
||||||
name: "value_template",
|
name: "value_template",
|
||||||
selector: { text: { multiline: true } },
|
selector: { template: {} },
|
||||||
},
|
},
|
||||||
{ name: "for", selector: { duration: {} } },
|
{ name: "for", selector: { duration: {} } },
|
||||||
] as const
|
] as const
|
||||||
@ -106,7 +106,7 @@ export class HaNumericStateTrigger extends LitElement {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Check for templates in trigger. If found, revert to YAML mode.
|
// Check for templates in trigger. If found, revert to YAML mode.
|
||||||
if (this.trigger && hasTemplate(this.trigger)) {
|
if (this.trigger && hasTemplate(this.trigger.for)) {
|
||||||
fireEvent(
|
fireEvent(
|
||||||
this,
|
this,
|
||||||
"ui-mode-not-available",
|
"ui-mode-not-available",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user