From fa637a37d543f3f19d1961654d8feac619ba47e7 Mon Sep 17 00:00:00 2001 From: PhracturedBlue Date: Fri, 19 Oct 2018 07:15:31 -0700 Subject: [PATCH] Fix mailbox issues with this.fire() and this.language undefined (#1809) * Fix bug with this.fire and this.language * Proper language variable --- src/panels/mailbox/ha-panel-mailbox.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/panels/mailbox/ha-panel-mailbox.js b/src/panels/mailbox/ha-panel-mailbox.js index 46d816cefd..c3909ee192 100644 --- a/src/panels/mailbox/ha-panel-mailbox.js +++ b/src/panels/mailbox/ha-panel-mailbox.js @@ -16,13 +16,14 @@ import "../../resources/ha-style.js"; import formatDateTime from "../../common/datetime/format_date_time.js"; import LocalizeMixin from "../../mixins/localize-mixin.js"; +import EventsMixin from "../../mixins/events-mixin.js"; let registeredDialog = false; /* * @appliesMixin LocalizeMixin */ -class HaPanelMailbox extends LocalizeMixin(PolymerElement) { +class HaPanelMailbox extends EventsMixin(LocalizeMixin(PolymerElement)) { static get template() { return html`