diff --git a/hassio/api/utils.py b/hassio/api/utils.py index eaedc7dbb..b3ce8a4db 100644 --- a/hassio/api/utils.py +++ b/hassio/api/utils.py @@ -1,6 +1,5 @@ """Init file for HassIO util for rest api.""" import json -import hashlib import logging from aiohttp import web @@ -94,9 +93,3 @@ async def api_validate(schema, request): raise RuntimeError(humanize_error(data, ex)) from None return data - - -def hash_password(password): - """Hash and salt our passwords.""" - key = ")*()*SALT_HASSIO2123{}6554547485HSKA!!*JSLAfdasda$".format(password) - return hashlib.sha256(key.encode()).hexdigest()