Use dynamicElement directive in ha-form (#4317)

* Use dynamicContentDirective

* Turn around

* Remove attributes

* Rename to dynamicElement
This commit is contained in:
Bram Kragten
2019-12-04 22:58:35 +01:00
committed by GitHub
parent 2557414b11
commit e6ac0258e3
3 changed files with 25 additions and 52 deletions

View File

@@ -12,7 +12,7 @@ import {
LitElement,
property,
} from "lit-element";
import { dynamicContentDirective } from "../../../../common/dom/dynamic-content-directive";
import { dynamicElement } from "../../../../common/dom/dynamic-element-directive";
import { fireEvent } from "../../../../common/dom/fire_event";
import "../../../../components/ha-card";
import { HomeAssistant } from "../../../../types";
@@ -266,7 +266,7 @@ export default class HaAutomationTriggerRow extends LitElement {
</paper-listbox>
</paper-dropdown-menu-light>
<div>
${dynamicContentDirective(
${dynamicElement(
`ha-automation-trigger-${this.trigger.platform}`,
{ hass: this.hass, trigger: this.trigger }
)}