1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-21 19:28:46 +00:00
Files
frontend/js/editor/editor.js
2017-07-16 23:31:19 -07:00

11 lines
296 B
JavaScript

import { h, render } from 'preact';
import Automation from './automation';
window.AutomationEditor = function (mountEl, props, mergeEl) {
return render(h(Automation, props), mountEl, mergeEl);
};
window.unmountPreact = function (mountEl, mergeEl) {
render(() => null, mountEl, mergeEl);
};