mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-17 22:26:30 +00:00
short hash
This commit is contained in:
parent
645a8e2372
commit
0e258a4ae0
@ -20,7 +20,7 @@ def slugify(text):
|
|||||||
def get_hash_from_repository(repo):
|
def get_hash_from_repository(repo):
|
||||||
"""Generate a hash from repository."""
|
"""Generate a hash from repository."""
|
||||||
key = repo.lower().encode()
|
key = repo.lower().encode()
|
||||||
return hashlib.sha1(key).hexdigest()
|
return hashlib.sha1(key).hexdigest()[:8]
|
||||||
|
|
||||||
|
|
||||||
def extract_hash_from_path(base_path, options_path):
|
def extract_hash_from_path(base_path, options_path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user