mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Remove ha-state-icon (#7545)
This commit is contained in:
parent
48ef8c86c2
commit
4bc8818145
@ -1,25 +0,0 @@
|
|||||||
import { html } from "@polymer/polymer/lib/utils/html-tag";
|
|
||||||
/* eslint-plugin-disable lit */
|
|
||||||
import { PolymerElement } from "@polymer/polymer/polymer-element";
|
|
||||||
import { stateIcon } from "../../common/entity/state_icon";
|
|
||||||
import "../ha-icon";
|
|
||||||
|
|
||||||
class HaStateIcon extends PolymerElement {
|
|
||||||
static get template() {
|
|
||||||
return html` <ha-icon icon="[[computeIcon(stateObj)]]"></ha-icon> `;
|
|
||||||
}
|
|
||||||
|
|
||||||
static get properties() {
|
|
||||||
return {
|
|
||||||
stateObj: {
|
|
||||||
type: Object,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
computeIcon(stateObj) {
|
|
||||||
return stateIcon(stateObj);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
customElements.define("ha-state-icon", HaStateIcon);
|
|
@ -23,7 +23,6 @@ import "../../../common/search/search-input";
|
|||||||
import { caseInsensitiveCompare } from "../../../common/string/compare";
|
import { caseInsensitiveCompare } from "../../../common/string/compare";
|
||||||
import { LocalizeFunc } from "../../../common/translations/localize";
|
import { LocalizeFunc } from "../../../common/translations/localize";
|
||||||
import { nextRender } from "../../../common/util/render-status";
|
import { nextRender } from "../../../common/util/render-status";
|
||||||
import "../../../components/entity/ha-state-icon";
|
|
||||||
import "../../../components/ha-button-menu";
|
import "../../../components/ha-button-menu";
|
||||||
import "../../../components/ha-card";
|
import "../../../components/ha-card";
|
||||||
import "../../../components/ha-svg-icon";
|
import "../../../components/ha-svg-icon";
|
||||||
|
@ -12,7 +12,6 @@ import type {
|
|||||||
DataTableColumnContainer,
|
DataTableColumnContainer,
|
||||||
HaDataTable,
|
HaDataTable,
|
||||||
} from "../../../../../components/data-table/ha-data-table";
|
} from "../../../../../components/data-table/ha-data-table";
|
||||||
import "../../../../../components/entity/ha-state-icon";
|
|
||||||
import type { Cluster } from "../../../../../data/zha";
|
import type { Cluster } from "../../../../../data/zha";
|
||||||
import type { HomeAssistant } from "../../../../../types";
|
import type { HomeAssistant } from "../../../../../types";
|
||||||
import { formatAsPaddedHex } from "./functions";
|
import { formatAsPaddedHex } from "./functions";
|
||||||
|
@ -15,7 +15,6 @@ import type {
|
|||||||
HaDataTable,
|
HaDataTable,
|
||||||
DataTableRowData,
|
DataTableRowData,
|
||||||
} from "../../../../../components/data-table/ha-data-table";
|
} from "../../../../../components/data-table/ha-data-table";
|
||||||
import "../../../../../components/entity/ha-state-icon";
|
|
||||||
import type {
|
import type {
|
||||||
ZHADeviceEndpoint,
|
ZHADeviceEndpoint,
|
||||||
ZHAEntityReference,
|
ZHAEntityReference,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user