mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +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: "value_template",
|
||||
selector: { text: { multiline: true } },
|
||||
selector: { template: {} },
|
||||
},
|
||||
] as const
|
||||
);
|
||||
|
@ -95,7 +95,7 @@ export class HaNumericStateTrigger extends LitElement {
|
||||
{ name: "below", selector: { text: {} } },
|
||||
{
|
||||
name: "value_template",
|
||||
selector: { text: { multiline: true } },
|
||||
selector: { template: {} },
|
||||
},
|
||||
{ name: "for", selector: { duration: {} } },
|
||||
] as const
|
||||
@ -106,7 +106,7 @@ export class HaNumericStateTrigger extends LitElement {
|
||||
return;
|
||||
}
|
||||
// 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(
|
||||
this,
|
||||
"ui-mode-not-available",
|
||||
|
Loading…
x
Reference in New Issue
Block a user