mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Don't hide battery entities in compute card function (#16373)
This commit is contained in:
parent
694fc7d4ba
commit
79d6453c7e
@ -13,7 +13,6 @@ import {
|
|||||||
} from "../../../data/energy";
|
} from "../../../data/energy";
|
||||||
import { domainToName } from "../../../data/integration";
|
import { domainToName } from "../../../data/integration";
|
||||||
import { LovelaceCardConfig, LovelaceViewConfig } from "../../../data/lovelace";
|
import { LovelaceCardConfig, LovelaceViewConfig } from "../../../data/lovelace";
|
||||||
import { SENSOR_DEVICE_CLASS_BATTERY } from "../../../data/sensor";
|
|
||||||
import { computeUserInitials } from "../../../data/user";
|
import { computeUserInitials } from "../../../data/user";
|
||||||
import { HomeAssistant } from "../../../types";
|
import { HomeAssistant } from "../../../types";
|
||||||
import { HELPER_DOMAINS } from "../../config/helpers/const";
|
import { HELPER_DOMAINS } from "../../config/helpers/const";
|
||||||
@ -179,11 +178,6 @@ export const computeCards = (
|
|||||||
conf.name = name;
|
conf.name = name;
|
||||||
}
|
}
|
||||||
footerEntities.push(conf);
|
footerEntities.push(conf);
|
||||||
} else if (
|
|
||||||
domain === "sensor" &&
|
|
||||||
stateObj?.attributes.device_class === SENSOR_DEVICE_CLASS_BATTERY
|
|
||||||
) {
|
|
||||||
// Do nothing.
|
|
||||||
} else {
|
} else {
|
||||||
let name: string | undefined;
|
let name: string | undefined;
|
||||||
const entityConf =
|
const entityConf =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user