Skip to content

Conversation

@sca075
Copy link
Owner

@sca075 sca075 commented Sep 30, 2025

We already made the shared to dictionary possible and this changes we update the shared data locally at current we return a pil and data dictionary so this is a braking change. Workflow release changed.

sca075 and others added 3 commits September 30, 2025 13:50
* Update version to v0.1.12 and refactor attributes

* Add docstrings to methods in shared.py

Added docstrings for methods in shared.py to improve code documentation and clarity.

* Update SCR/valetudo_map_parser/config/shared.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update SCR/valetudo_map_parser/config/shared.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update SCR/valetudo_map_parser/config/shared.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update SCR/valetudo_map_parser/config/shared.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update SCR/valetudo_map_parser/config/shared.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update SCR/valetudo_map_parser/config/shared.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… shared updated locally

Signed-off-by: Sandro Cantarella <sandro@a3a68459-3659-4d50-ae96-08f848c5a8b3.fritz.box>
@sca075 sca075 self-assigned this Sep 30, 2025
@sca075 sca075 added the enhancement New feature or request label Sep 30, 2025
Copy link
Owner Author

@sca075 sca075 left a comment

Choose a reason for hiding this comment

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

all okay

@sca075 sca075 requested a review from Copilot September 30, 2025 16:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR centralizes shared data management in the Valetudo map parser library by modifying the async_get_image method to return a tuple containing both PIL image and data dictionary, making this a breaking change. The PR also updates the workflow to use trusted publishing for PyPI releases.

  • Modified async_get_image to return tuple (PIL image, data dictionary) instead of just PIL image
  • Added centralized shared data update mechanism through _async_update_shared_data method
  • Updated GitHub workflow to use trusted publishing for PyPI releases

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pyproject.toml Version bump from 0.1.10rc5 to 0.1.10rc6
SCR/valetudo_map_parser/hypfer_handler.py Modified get_calibration_data to accept rotation_angle parameter
SCR/valetudo_map_parser/config/utils.py Updated async_get_image return type and added shared data centralization
SCR/valetudo_map_parser/config/types.py Added new TypedDict classes for destinations structure
SCR/valetudo_map_parser/config/shared.py Code cleanup and added to_dict method for data serialization
.github/workflows/release.yaml Updated to use trusted publishing instead of manual token configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

sca075 and others added 4 commits September 30, 2025 18:29
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Sandro Cantarella <sandro@a3a68459-3659-4d50-ae96-08f848c5a8b3.fritz.box>
@sca075 sca075 requested a review from Copilot September 30, 2025 16:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

sca075 and others added 2 commits September 30, 2025 18:40
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sca075 sca075 merged commit 8e0f92b into main Sep 30, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants