Home Assistant: Add entity rename, hide, favorites, and quicklinks - #30459
Home Assistant: Add entity rename, hide, favorites, and quicklinks#30459d0rN834 wants to merge 3 commits into
Conversation
Enable local rename, hide, and favorite actions in entity lists, add an Entity Settings command for managing overrides, and support saving entities as Raycast quicklinks. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Thank you for your contribution! 🎉 🔔 @tonka3000 @altrdev @rspeicher @amuelli @xilopaint @krsntn @mikikiv @techmaved @05bmckay you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsBRANCH="feat/homeassistant-entity-customization"
FORK_URL="https://github.com/d0rN834/extensions.git"
EXTENSION_NAME="homeassistant"
REPO_NAME="extensions"
git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run devWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. |
Greptile SummaryThe PR adds locally persisted entity aliases, visibility controls, favorites, an Entity Settings command, and entity quicklinks.
Confidence Score: 4/5The PR is not yet safe to merge because several changed entity commands do not provide the dedicated Favorites section promised by the feature. Battery, camera, and zone views only reorder favorite entities inside flat collections, leaving the dedicated Favorites grouping absent for those commands. Files Needing Attention: extensions/homeassistant/src/components/battery/list.tsx, extensions/homeassistant/src/components/camera/grid.tsx, extensions/homeassistant/src/components/zone/list.tsx Important Files Changed
Prompt To Fix All With AI### Issue 1
extensions/homeassistant/src/components/battery/list.tsx:28
**Favorites section remains missing**
When a user favorites a battery, camera, or zone entity, these commands only move it to the beginning of an unlabeled collection instead of rendering the dedicated top-level Favorites section, causing favorite presentation to remain inconsistent with the corrected state-partitioned lists.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (2): Last reviewed commit: "Remove local pnpm-workspace.yaml from ex..." | Re-trigger Greptile |
Preserve battery charge ordering, add top-level Favorites sections to state-partitioned lists, use {PR_MERGE_DATE} in changelog, and run Prettier on new files.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
|
||
| const sortedStates = sortBatteries(states); | ||
| const batteryStates = sortBatteries(states) ?? states; | ||
| const sortedStates = prioritizeFavoriteStates(batteryStates, favoriteEntityIds); |
There was a problem hiding this comment.
Favorites section remains missing
When a user favorites a battery, camera, or zone entity, these commands only move it to the beginning of an unlabeled collection instead of rendering the dedicated top-level Favorites section, causing favorite presentation to remain inconsistent with the corrected state-partitioned lists.
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/homeassistant/src/components/battery/list.tsx
Line: 28
Comment:
**Favorites section remains missing**
When a user favorites a battery, camera, or zone entity, these commands only move it to the beginning of an unlabeled collection instead of rendering the dedicated top-level Favorites section, causing favorite presentation to remain inconsistent with the corrected state-partitioned lists.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Summary
⌘⇧R), hide (⌘⇧H), and toggle favorite (⌘⇧F)⌘⇧L) to create Raycast quicklinks that open the matching entity list with the entity ID prefilled in searchAll overrides are stored locally in Raycast and do not modify Home Assistant.
Test plan
Made with Cursor