Add HACS, Themes
This commit is contained in:
7
custom_components/hacs/utils/decode.py
Normal file
7
custom_components/hacs/utils/decode.py
Normal file
@@ -0,0 +1,7 @@
|
||||
"""Util to decode content from the github API."""
|
||||
from base64 import b64decode
|
||||
|
||||
|
||||
def decode_content(content: str) -> str:
|
||||
"""Decode content."""
|
||||
return b64decode(bytearray(content, "utf-8")).decode()
|
||||
Reference in New Issue
Block a user