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

Subscribe to Config Entities to delete invalid one #8

Closed
MichelFR opened this issue Feb 19, 2023 · 0 comments
Closed

Subscribe to Config Entities to delete invalid one #8

MichelFR opened this issue Feb 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@MichelFR
Copy link
Owner

MichelFR commented Feb 19, 2023

I noticed that already created config entities are not deleted when the container is not running anymore. As a result, containers that are no longer available are still being shown in Homeassistant. To fix this issue, I propose subscribing to the MQTT topic where we created the config entities with auto discovery. By doing this, we can delete invalid config entities appropriately by sending an empty payload.

To implement this feature, we will need to update the codebase to include the necessary MQTT subscription logic. Once the code is updated, we can test the functionality to ensure that invalid config entities are being deleted as expected.

This issue is being raised to track the progress of implementing the subscribe to config entities to delete invalid ones feature. If anyone has any suggestions or ideas on how to approach this issue, feel free to contribute to the project.

@MichelFR MichelFR added issue:bug Something isn't working enhancement New feature or request and removed issue:bug Something isn't working labels Feb 25, 2023
MichelFR added a commit that referenced this issue Mar 10, 2023
…ror.stack to error log, regulary check for new/deleted images
MichelFR added a commit that referenced this issue Mar 4, 2024
…ror.stack to error log, regulary check for new/deleted images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant