unfoldedcircle / feature-and-bug-tracker

Feature and bug tracker repository for Unfolded Circle products
22 stars 0 forks source link

[bug] Entities removed from Home Assistant "mapping" can not be removed from activity #241

Open mvdwetering opened 6 months ago

mvdwetering commented 6 months ago

Is there an existing issue for this?

Description

I removed some entities from the Home Assistant integration since I decided I did not need them anymore. So to be clear, the entities still exist in Home Assistant, I just removed them from the configured entities list in the HA integration of the remote.

When I open an activity that used to have these entities they are still in the "included entities" list and have a "no parking" sign. image

However I can not delete them by pressing the red X. After confirmation it gives an error "Included entity does not exist: ". Also removing commands from the On sequence does not work and gives the same error.

How to Reproduce

  1. Remove an entity that is used in an activity from the HA integration
  2. Try to remove the entities/commands from the activity

Expected behavior

It is possible to cleanap deleted entities.

I would have expected that the remote would do the cleanup itself. Maybe after a confirmation when deleting the entities like "Deleting these entities will also remove them from these activities/macros"

System version

v1.5.2

What part of the system affected by the problem?

Overall system

Additional context

No response

zehnm commented 5 months ago

@mvdwetering multiple unavailable entities (with the 🚫 icon) can now be removed with 1.6.2 1.6.1. If that works for you, then please close the ticket.

Not removing the configured entities in activites & macros has been a design decision to keep the sequences & UI configuration intact, when re-adding the integration or the entities. We might add a "remove everything" option when removing a configured entity in the future.