1
0
forked from clan/clan-core

moonlight-sunshine-accept: Fix formatting error

This commit is contained in:
Luis Hebendanz 2024-05-03 20:38:53 +02:00
parent 4fef9c3652
commit 9ec8b71765

View File

@ -22,7 +22,7 @@ def pair(pin: str) -> str:
user_and_pass = base64.b64encode(b"sunshine:sunshine").decode("ascii")
headers = {
"Content-Type": "application/json",
"Authorization": "Basic %s" % user_and_pass,
"Authorization": f"Basic {user_and_pass}",
}
# Define the parameters
@ -47,7 +47,7 @@ def restart() -> None:
user_and_pass = base64.b64encode(b"sunshine:sunshine").decode("ascii")
headers = {
"Content-Type": "application/json",
"Authorization": "Basic %s" % user_and_pass,
"Authorization": f"Basic {user_and_pass}",
}
# Define the parameters