Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't delete entity from storage #4828

Closed
3 tasks done
tjorim opened this issue Feb 10, 2020 · 0 comments · Fixed by #4829
Closed
3 tasks done

Can't delete entity from storage #4828

tjorim opened this issue Feb 10, 2020 · 0 comments · Fixed by #4829
Labels
Bug Current Bug in UI - Extra Attention

Comments

@tjorim
Copy link

tjorim commented Feb 10, 2020

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.

The problem

MikroTik device_tracker got updated to use storage instead of known_devices.yaml
However, I noticed that removing an Entity from a device does not always work.
More specifically when changing the 'Entity ID' text input before removing.
Looks like the call uses the current input instead of the original input.

Expected behavior

I can just delete the entity, it shouldn't matter if the entity ID was changed because the user just wants to delete it. Maybe it would even delete the wrong entity when changing the input to another existing ID?

Steps to reproduce

  1. Go to a devive
  2. Open an entity
  3. Change the entity ID to something non-existant.
  4. Try to delete the entity.

Environment

  • Home Assistant release with the issue: 0.105.2
  • Last working Home Assistant release (if known): NA
  • UI Type (States or Lovelace): NA
  • Browser and browser version: Chrome
  • Operating system: Windows

Problem-relevant configuration

NA

Javascript errors shown in your browser console/inspector

In the example below I removed the part after the dot from the enity id.

entity-registry-settings.ts:187 Uncaught (in promise) entity-registry-settings.ts:187 Uncaught (in promise) {code: "invalid_format", message: "Entity ID device_tracker. is an invalid entity id … value @ data['entity_id']. Got 'device_tracker.'"}

Additional information

@tjorim tjorim added the Bug Current Bug in UI - Extra Attention label Feb 10, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Current Bug in UI - Extra Attention
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant