mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
Fix computing cards (#8894)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
96bc3ef99a
commit
62a0cfb0f6
@ -181,7 +181,7 @@ export const computeCards = (
|
||||
titlePrefix &&
|
||||
stateObj &&
|
||||
// eslint-disable-next-line no-cond-assign
|
||||
(name = computeStateName(stateObj)).startsWith(titlePrefix)
|
||||
(name = computeStateName(stateObj)) !== titlePrefix && name.startsWith(titlePrefix)
|
||||
? {
|
||||
entity: entityId,
|
||||
name: adjustName(name.substr(titlePrefix.length)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user