bugfix
This commit is contained in:
parent
75de390973
commit
c2070e05c6
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
name: Screenshotter
|
||||
version: 1.0.1.5
|
||||
version: 1.0.1.6
|
||||
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
|
||||
slug: screenshotter
|
||||
description: Screenshot images for E-Paper pricetags
|
||||
|
|
|
@ -49,9 +49,9 @@ while True:
|
|||
driver.get(task["url"])
|
||||
time.sleep(int(wait))
|
||||
|
||||
if task["ha_auth"]:
|
||||
if task.get("ha_auth"):
|
||||
print("Doing HA Auth")
|
||||
driver.execute_script(f"window.localStorage.setItem('hassTokens', {hassUrl: '{ha_url}', access_token: '{ha_token}', token_type: 'Bearer'});")
|
||||
driver.execute_script(f"window.localStorage.setItem('hassTokens', {{hassUrl: '{ha_url}', access_token: '{ha_token}', token_type: 'Bearer'}});")
|
||||
driver.get(task["url"])
|
||||
time.sleep(int(wait))
|
||||
|
||||
|
|
Loading…
Reference in a new issue