1
0
mirror of https://github.com/natekspencer/hacs-oasis_mini.git synced 2025-11-16 17:13:49 -05:00

Fix track info with new format

This commit is contained in:
Nathan Spencer
2025-07-23 19:49:46 +00:00
parent 21fd8a63ba
commit 2d37fb691f
5 changed files with 10876 additions and 4374 deletions

View File

@@ -144,7 +144,7 @@ class OasisMini:
return None
svg_content = decrypt_svg_content(svg_content)
paths = svg_content.split("L")
total = self.track.get("reduced_svg_content", {}).get("1", len(paths))
total = self.track.get("reduced_svg_content_new", 0) or len(paths)
percent = (100 * self.progress) / total
return percent