1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00
Files
frontend/js/automation-editor/trigger/time.js
Paulus Schoutsen 28457747e7 Fix eslint import extension (#682)
* Fix eslint import extension

* Update eslint hound

* Enable no unresolved for normal usage
2017-11-25 11:14:44 -08:00

31 lines
557 B
JavaScript

import { h, Component } from 'preact';
import { onChangeEvent } from '../../common/util/event.js';
export default class TimeTrigger extends Component {
constructor() {
super();
this.onChange = onChangeEvent.bind(this, 'trigger');
}
/* eslint-disable camelcase */
render({ trigger }) {
const { at } = trigger;
return (
<div>
<paper-input
label="At"
name="at"
value={at}
onChange={this.onChange}
/>
</div>
);
}
}
TimeTrigger.defaultConfig = {
at: '',
};