Closed sca075 closed 2 months ago
The update to the mqtt_vacuum_camera
component includes a minor version increment from 2024.08.1
to 2024.08.2
. Changes span multiple files and primarily involve enhancements to image processing logic, room data handling, and overall code organization. Notable improvements include refined cropping calculations, streamlined room data access, and updates to the RRMapParser
class for better maintainability and readability.
File Path | Change Summary |
---|---|
custom_components/mqtt_vacuum_camera/manifest.json |
Version updated from 2024.08.1 to 2024.08.2 . |
custom_components/mqtt_vacuum_camera/utils/auto_crop.py |
Removed redundant comments; improved crop dimension calculations with rounding and sorting. |
custom_components/mqtt_vacuum_camera/utils/img_data.py |
Adjusted async_get_rooms_coordinates for accuracy; removed commented-out code. |
custom_components/mqtt_vacuum_camera/valetudo/MQTT/connector.py |
Removed dependency on RoomStore for room data; improved efficiency in rrm_handle_active_segments . |
custom_components/mqtt_vacuum_camera/valetudo/rand256/image_handler.py |
Modified room indexing logic; removed commented-out auto-zoom code for clarity. |
custom_components/mqtt_vacuum_camera/valetudo/rand256/reimg_draw.py |
Removed logging statements in _draw_segments ; version updated from 2024.08.1 to 2024.08.2 . |
custom_components/mqtt_vacuum_camera/valetudo/rand256/rrparser.py |
Refactored RRMapParser ; introduced structured classes for constants; updated method signatures with type hints. |
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?
@coderabbitai full review
This PR is to get the auto zoom function working on Rand256. There are still issues with the active zones mapping that will be addressed with the next commits. For instance the image zoom now do not crash the camera. So we are at 50% of completion.
Summary by CodeRabbit
New Features
mqtt_vacuum_camera
component to reflect minor enhancements and bug fixes.Bug Fixes
Refactor
RRMapParser
, improving code organization and readability.