Fix missing variable
This commit is contained in:
parent
aa1bea0db8
commit
c9746b957f
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -15,6 +15,7 @@ def main():
|
||||||
assert TOKEN, "Must supply HASS_TOKEN env variable"
|
assert TOKEN, "Must supply HASS_TOKEN env variable"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
client = requests.Session()
|
||||||
client.headers.update({
|
client.headers.update({
|
||||||
"Authorization": f"Bearer {TOKEN}",
|
"Authorization": f"Bearer {TOKEN}",
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|
Loading…
Reference in a new issue