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"])