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

Fix camera removal #200

Merged
merged 4 commits into from
Sep 19, 2024
Merged

Fix camera removal #200

merged 4 commits into from
Sep 19, 2024

Conversation

denniswittich
Copy link
Contributor

This PR fixes the removal of cameras in the multi_camera_provider.

The problem was that the camera removal works by modifying the dict returned by self.cameras. However, the multi_camera_provider overwrites this method to return a joined dict of all sub-providers. Consequently, the deletion had no effect.

This PR also adds a deprecation warning for the prune_images function which is outdated because images is a dequeue now.

Copy link
Contributor

@pascalzauberzeug pascalzauberzeug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Approved, if it's okay with you @denniswittich that the deprecation warning is probably never shown.

@denniswittich denniswittich merged commit 4b84805 into main Sep 19, 2024
6 checks passed
@denniswittich denniswittich deleted the fix-camera-removal branch September 19, 2024 16:43
@falkoschindler falkoschindler added the bug Something isn't working label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants