mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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";
|
||||
import { domainToName } from "../../../data/integration";
|
||||
import { LovelaceCardConfig, LovelaceViewConfig } from "../../../data/lovelace";
|
||||
import { SENSOR_DEVICE_CLASS_BATTERY } from "../../../data/sensor";
|
||||
import { computeUserInitials } from "../../../data/user";
|
||||
import { HomeAssistant } from "../../../types";
|
||||
import { HELPER_DOMAINS } from "../../config/helpers/const";
|
||||
@ -179,11 +178,6 @@ export const computeCards = (
|
||||
conf.name = name;
|
||||
}
|
||||
footerEntities.push(conf);
|
||||
} else if (
|
||||
domain === "sensor" &&
|
||||
stateObj?.attributes.device_class === SENSOR_DEVICE_CLASS_BATTERY
|
||||
) {
|
||||
// Do nothing.
|
||||
} else {
|
||||
let name: string | undefined;
|
||||
const entityConf =
|
||||
|
Loading…
x
Reference in New Issue
Block a user