Closed sca075 closed 3 months ago
The recent updates to the mqtt_vacuum_camera
integration significantly enhance the management of camera entities and file operations. Key improvements include a more comprehensive reloading mechanism for camera entries, better logging for traceability, and new asynchronous file handling functions. These changes collectively contribute to a more robust and efficient integration, optimizing both functionality and usability.
File Path | Change Summary |
---|---|
custom_components/mqtt_vacuum_camera/__init__.py |
Enhanced async_setup_entry and async_unload_entry functions for better camera entity management and added debug logging. |
custom_components/mqtt_vacuum_camera/utils/auto_crop.py |
Updated error logging level and added a state condition in async_auto_trim_and_zoom_image for optimized crop data saving. |
custom_components/mqtt_vacuum_camera/utils/files_operations.py |
Introduced new async functions: async_list_files for listing files and async_clean_up_all_auto_crop_files for deleting specific files asynchronously. |
custom_components/mqtt_vacuum_camera/const.py |
Incremented version number from v2024.07.1 to v2024.08.1 . |
custom_components/mqtt_vacuum_camera/manifest.json |
Updated version number from 2024.08.0 to 2024.08.1 . |
custom_components/mqtt_vacuum_camera/services.yaml |
Simplified reset_trims service by removing the target and entity definitions. |
custom_components/mqtt_vacuum_camera/valetudo/rand256/reimg_draw.py |
Streamlined import statements for improved readability. |
🐰 In the realm of code where cameras gleam,
Changes brought forth a brilliant dream.
With logs that chatter, and entities anew,
Our vacuum dances, all fresh and true!
Let's hop with joy, for the bugs are few! ✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
It was reported that the reload service didn't work with multiple vacuums. This is fix with the current commit. The aim of this PR is to also enache the reset_trims service using the camra entity_id instead of the vacuum name to save the auto_trim_name.json. This should warrant that the service always works as expected as per sometime the camera entity_id is different from the vacuum entity_id.
Summary by CodeRabbit