mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-15 13:16:29 +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):
|
||||
"""Generate a hash from repository."""
|
||||
key = repo.lower().encode()
|
||||
return hashlib.sha1(key).hexdigest()
|
||||
return hashlib.sha1(key).hexdigest()[:8]
|
||||
|
||||
|
||||
def extract_hash_from_path(base_path, options_path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user