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

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",