zachowj / hass-node-red

Companion Component for node-red-contrib-home-assistant-websocket to help integrate Node-RED with Home Assistant Core
MIT License
460 stars 182 forks source link

Duplicate entities created and cannot delete them without editing the HTML #51

Closed ab3lson closed 3 years ago

ab3lson commented 3 years ago

Version of the custom_component

Latest version

Configuration

None needed

Describe the bug

The entity node created a duplicate entity (same entity_id with _2 appended to it). I went to delete both entities to make a one, but the delete button was greyed out. To fix this, I suggest that you remove the disabled attribute from the delete button's HTML. I do not know how the entity was duplicated, so I can't offer much help there, but this has happened to me a handful of times over the past few months.

Reproduce the bug

Create a sensor in Node-RED with the entity node. Go to Configuration > Integrations > Node-RED entities and select the entity. Try to delete the entity. It should be greyed out. The entity can be deleted by removing the "disabled" attribute in the HTML and then clicking the delete button.

Debug log

None needed.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.