mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-21 09:36:33 +00:00
31 lines
564 B
JavaScript
31 lines
564 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}
|
|
onvalue-changed={this.onChange}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
TimeTrigger.defaultConfig = {
|
|
at: '',
|
|
};
|