From 2b76b3887e205621b6a3a9612867a3ac9fa2f1d8 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 22 Apr 2020 11:12:27 +0200 Subject: [PATCH] =?UTF-8?q?Add=20device=20automation=20translations=20to?= =?UTF-8?q?=20add=20automation=20device=20dia=E2=80=A6=20(#5573)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add device automation translations to add automation device dialog * Update translations-mixin.ts --- .../devices/device-detail/ha-device-automation-dialog.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/panels/config/devices/device-detail/ha-device-automation-dialog.ts b/src/panels/config/devices/device-detail/ha-device-automation-dialog.ts index 326cf503b8..28a59b03c4 100644 --- a/src/panels/config/devices/device-detail/ha-device-automation-dialog.ts +++ b/src/panels/config/devices/device-detail/ha-device-automation-dialog.ts @@ -39,6 +39,11 @@ export class DialogDeviceAutomation extends LitElement { await this.updateComplete; } + protected firstUpdated(changedProps) { + super.firstUpdated(changedProps); + this.hass.loadBackendTranslation("device_automation"); + } + protected updated(changedProps): void { super.updated(changedProps);