fix ha url fetch
This commit is contained in:
parent
95314e4135
commit
b1d583f024
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
name: E-Paper Screenshotter
|
||||
version: 1.0.1.28
|
||||
version: 1.0.1.29
|
||||
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
|
||||
slug: screenshotter
|
||||
description: Screenshot images for E-Paper pricetags
|
||||
|
|
|
@ -76,7 +76,7 @@ while True:
|
|||
time.sleep(int(wait))
|
||||
logging.info("Doing HA Auth")
|
||||
driver.execute_script(f"window.localStorage.setItem('hassTokens', JSON.stringify({{hassUrl: '{ha_url}', access_token: '{ha_token}', token_type: 'Bearer'}}));")
|
||||
driver.get(task["dashboard"])
|
||||
driver.get(f'{INTERNAL_HA_URL}/{task["dashboard"]}')
|
||||
else:
|
||||
driver.get(task["url"])
|
||||
|
||||
|
|
Loading…
Reference in a new issue