mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Add LocalizeMixin to state-info
This commit is contained in:
parent
a214ab463e
commit
7d1f9f3981
@ -1,13 +1,14 @@
|
||||
import { html } from "@polymer/polymer/lib/utils/html-tag";
|
||||
import "@polymer/paper-tooltip/paper-tooltip";
|
||||
/* eslint-plugin-disable lit */
|
||||
import LocalizeMixin from "../../mixins/localize-mixin";
|
||||
import { PolymerElement } from "@polymer/polymer/polymer-element";
|
||||
import { computeStateName } from "../../common/entity/compute_state_name";
|
||||
import { computeRTL } from "../../common/util/compute_rtl";
|
||||
import "../ha-relative-time";
|
||||
import "./state-badge";
|
||||
|
||||
class StateInfo extends PolymerElement {
|
||||
class StateInfo extends LocalizeMixin(PolymerElement) {
|
||||
static get template() {
|
||||
return html`
|
||||
${this.styleTemplate} ${this.stateBadgeTemplate} ${this.infoTemplate}
|
||||
|
Loading…
x
Reference in New Issue
Block a user