1
0
mirror of https://github.com/natekspencer/hacs-oasis_mini.git synced 2025-12-06 18:44:14 -05:00

Add additional helpers

This commit is contained in:
Nathan Spencer
2025-11-23 06:45:01 +00:00
parent 2a92212aad
commit 83de1d5606
10 changed files with 82 additions and 104 deletions

View File

@@ -35,8 +35,8 @@ def _parse_int(val: str) -> int:
return 0
def draw_svg(track: dict, progress: int, model_id: str) -> str | None:
"""Draw SVG."""
def create_svg(track: dict, progress: int) -> str | None:
"""Create an SVG from a track based on progress."""
if track and (svg_content := track.get("svg_content")):
try:
if progress is not None: