import { h, Component } from 'preact'; import { onChangeEvent } from '../../util/event.js'; export default class StateCondition extends Component { constructor() { super(); this.onChange = onChangeEvent.bind(this, 'condition'); } /* eslint-disable camelcase */ render({ condition }) { const { entity_id, state } = condition; const cndFor = condition.for; return (
For: {JSON.stringify(cndFor, null, 2)}}