-
Notifications
You must be signed in to change notification settings - Fork 0
Room Names added to RoomStore. #23
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
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b62ca85
change local _LOGGER to LOGGER and shared.py optimized parsed zone cl…
sca075 537417c
typing and other parser touches.
sca075 6dc6b5d
bump mvcrender and change the async to sync usage.
sca075 d76d7c1
bump mvcrender isort and ruff and replace blending and some drawing f…
sca075 85f2bdd
Merge branch 'main' into dev
sca075 3eaa9b9
corrections done
sca075 14c8b57
Merge remote-tracking branch 'origin/dev' into dev_main
06508c1
corrections duplicate logger
sca075 470f31c
removing unused code.
sca075 e4298db
delete auto_crop.py and color_utils.py as not used anymore
sca075 b3dd06a
ruff formatted and some mod on drawable.py
sca075 c9147c7
Merge branch 'main' into dev
sca075 588b6d8
changes
sca075 0a29d0c
remove duplicate
sca075 c88110d
remove potential memory leak from code.
sca075 c5d704a
drawable.py use now mcvrender for the most.
sca075 3a5c905
version bump
sca075 6738b14
test new battery state and add streaming to the data
sca075 fab2bb6
charging state updated
sca075 88120ab
added need room_names in RoomStore
sca075 8f4b91b
Merge branch 'main' into dev
sca075 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add defensive check for room_data structure.
If
room_datais not a dictionary (e.g.,None, string, or other type), line 134 will raise anAttributeErrorwhen calling.get(). While thevacuums_datadict is expected to contain dict values, adding a defensive check improves robustness.Apply this diff to add a type check:
if isinstance(self.vacuums_data, dict): for idx, (segment_id, room_data) in enumerate(self.vacuums_data.items()): if idx >= 16: # Max 16 rooms break - room_name = room_data.get("name", f"Room {segment_id}") + if isinstance(room_data, dict): + room_name = room_data.get("name", f"Room {segment_id}") + else: + room_name = f"Room {segment_id}" result[f"room_{idx}_name"] = f"{segment_id}: {room_name}"📝 Committable suggestion
🤖 Prompt for AI Agents