1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Center new more info controls (#15564)

* Center new more info controls

* Center change color view
This commit is contained in:
Paul Bottein
2023-02-23 15:10:05 +01:00
committed by GitHub
parent 03e3f161f7
commit 3b5fe7fd9f
9 changed files with 304 additions and 283 deletions

View File

@@ -94,12 +94,12 @@ export const computeShowLogBookComponent = (
return true;
};
export const computeShowNewMoreInfo = (stateObj: HassEntity) => {
export const computeShowNewMoreInfo = (stateObj: HassEntity): boolean => {
const domain = computeDomain(stateObj.entity_id);
if (domain === "group") {
const groupDomain = computeGroupDomain(stateObj as GroupEntity);
return (
groupDomain &&
groupDomain != null &&
groupDomain !== "group" &&
DOMAINS_WITH_NEW_MORE_INFO.includes(groupDomain)
);