Use ha toast for frontend notification

This commit is contained in:
Paulus Schoutsen 2018-08-15 10:04:52 +02:00
parent decbbc9acd
commit 7ffdb3ddc7

View File

@ -1,8 +1,8 @@
import '@polymer/paper-toast/paper-toast.js'; import '@polymer/ha-toast/ha-toast.js';
import '@polymer/paper-button/paper-button.js'; import '@polymer/paper-button/paper-button.js';
export default (installingWorker) => { export default (installingWorker) => {
const toast = document.createElement('paper-toast'); const toast = document.createElement('ha-toast');
toast.opened = true; toast.opened = true;
toast.text = 'A new version of the frontend is available.'; toast.text = 'A new version of the frontend is available.';
toast.duration = 0; toast.duration = 0;