Expose state trigger For configuration in editor (#1723)

This commit is contained in:
Adam Mills 2018-10-02 07:26:56 -04:00 committed by Paulus Schoutsen
parent 3d9d7d899d
commit 70225c1a18
2 changed files with 7 additions and 1 deletions

View File

@ -45,7 +45,12 @@ export default class StateTrigger extends Component {
value={to}
onvalue-changed={this.onChange}
/>
{trgFor && <pre>For: {JSON.stringify(trgFor, null, 2)}</pre>}
<paper-input
label={localize('ui.panel.config.automation.editor.triggers.type.state.for')}
name="for"
value={trgFor}
onvalue-changed={this.onChange}
/>
</div>
);
}

View File

@ -568,6 +568,7 @@
"state": {
"label": "State",
"from": "From",
"for": "For",
"to": "To"
},
"homeassistant": {