android
android copied to clipboard
Add support for Add to shortcut
We've introduced Add to feature in https://github.com/home-assistant/android/pull/5622 and it would be nice to extend it to Shortcut.
The UI for selecting an action is available starting from HA core 2025.12.0 or (in nightly/dev).
- we need to adjust the logic of
EntityAddToHandlerto only enable the shortcut option if we have a shortcut left to fill (current max is 5) otherwise it should be shown but marked as disabled. - we need to adjust the
ManageShortcutsSettingsFragmentto be able to take a parameter the entity ID selected and put it into the next available slot
In this task you will also have to update the unit tests in EntityAddToHandler
@TimoPtr can I work on this
This can be worked on since the PR on the frontend and android have been merged.