From b1d583f02413cc059881e3fc995ce7315047bf0f Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Fri, 17 Feb 2023 21:22:04 +0100 Subject: [PATCH] fix ha url fetch --- screenshotter/config.yaml | 2 +- screenshotter/rootfs/app/app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/screenshotter/config.yaml b/screenshotter/config.yaml index 5e421a8..8bf677c 100644 --- a/screenshotter/config.yaml +++ b/screenshotter/config.yaml @@ -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 diff --git a/screenshotter/rootfs/app/app.py b/screenshotter/rootfs/app/app.py index 5554f60..1659bcc 100644 --- a/screenshotter/rootfs/app/app.py +++ b/screenshotter/rootfs/app/app.py @@ -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"])