Skip to content

Commit

Permalink
style: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 31, 2024
1 parent 303a0a0 commit 97536d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/alexa_media/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ async def calculate_uuid(hass, email: str, url: str) -> dict:
+ return_index
# hash email/url in case HA uuid duplicated
+ int(
hashlib.sha256((email.lower() + url.lower()).encode()).hexdigest(), 16 # nosec
hashlib.sha256((email.lower() + url.lower()).encode()).hexdigest(),
16, # nosec
)
)[-32:]
result["index"] = return_index
Expand Down

0 comments on commit 97536d3

Please sign in to comment.