Skip to content

Fix ZeroDivisionError in map.py - #1716

Open
skolmer wants to merge 1 commit into
Tasshack:devfrom
skolmer:patch-1
Open

Fix ZeroDivisionError in map.py#1716
skolmer wants to merge 1 commit into
Tasshack:devfrom
skolmer:patch-1

Conversation

@skolmer

@skolmer skolmer commented Jul 19, 2026

Copy link
Copy Markdown

The map rendering failed on my installation. I got the following error so I added another check to only calculate points if count > 0. After that change the map rendered fine.

File "/config/custom_components/dreame_vacuum/dreame/map.py", line 7881, in _coords_on_line ZeroDivisionError: division by zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant