Fix missing variable

This commit is contained in:
Gabriel Augendre 2020-07-02 13:34:39 +02:00
parent aa1bea0db8
commit c9746b957f
No known key found for this signature in database
GPG Key ID: 1E693F4CE4AEE7B4
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ def main():
assert TOKEN, "Must supply HASS_TOKEN env variable"
try:
client = requests.Session()
client.headers.update({
"Authorization": f"Bearer {TOKEN}",
"Content-Type": "application/json",