Files
home-assistant-alt/hass/settings/custom_components/hacs/utils/decode.py
T
2024-01-11 15:10:51 +03:00

8 lines
207 B
Python

"""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()