diff --git a/src/dialogs/more-info/controls/more-info-automation.js b/src/dialogs/more-info/controls/more-info-automation.js index 8f65873f5d..fe92758cb5 100644 --- a/src/dialogs/more-info/controls/more-info-automation.js +++ b/src/dialogs/more-info/controls/more-info-automation.js @@ -1,40 +1,48 @@ -import '@polymer/iron-flex-layout/iron-flex-layout-classes.js'; import '@polymer/paper-button/paper-button.js'; import { html } from '@polymer/polymer/lib/utils/html-tag.js'; import { PolymerElement } from '@polymer/polymer/polymer-element.js'; import '../../../components/ha-relative-time.js'; -class MoreInfoAutomation extends PolymerElement { +import LocalizeMixin from '../../../mixins/localize-mixin.js'; + +class MoreInfoAutomation extends LocalizeMixin(PolymerElement) { static get template() { return html` - + -

- Last triggered: - -

+
+
+ [[localize('ui.card.automation.last_triggered')]]: +
+ +
- TRIGGER -`; +
+ + [[localize('ui.card.automation.trigger')]] + +
+ `; } static get properties() { return { - hass: { - type: Object, - }, - - stateObj: { - type: Object, - }, + hass: Object, + stateObj: Object }; } diff --git a/src/translations/en.json b/src/translations/en.json index d1c2f24826..00aa80f5e3 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -322,6 +322,10 @@ "arm_home": "Arm home", "arm_away": "Arm away" }, + "automation": { + "last_triggered": "Last triggered", + "trigger": "Trigger" + }, "camera": { "not_available": "Image not available" },