Files
epenetGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>frenck
d766aae436 Remove import annotations from components (#169536)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
2026-04-30 21:14:48 +02:00

9 lines
188 B
Python

"""Nightscout util functions."""
import hashlib
def hash_from_url(url: str) -> str:
"""Hash url to create a unique ID."""
return hashlib.sha256(url.encode("utf-8")).hexdigest()