From 3e6065cab84259c392ef538c623070c395056438 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Tue, 7 Feb 2023 22:24:06 +0100 Subject: [PATCH] less trash log --- 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 0a1fbed..1b3e8bc 100644 --- a/screenshotter/config.yaml +++ b/screenshotter/config.yaml @@ -1,6 +1,6 @@ --- name: Screenshotter -version: 1.0.1.10 +version: 1.0.1.11 #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 00b3597..7255228 100644 --- a/screenshotter/rootfs/app/app.py +++ b/screenshotter/rootfs/app/app.py @@ -50,7 +50,7 @@ while True: if task.get("ha_auth"): print("Doing HA Auth") - print(driver.execute_script(f"window.localStorage.setItem('hassTokens', JSON.stringify({{hassUrl: '{ha_url}', access_token: '{ha_token}', token_type: 'Bearer'}}));")) + driver.execute_script(f"window.localStorage.setItem('hassTokens', JSON.stringify({{hassUrl: '{ha_url}', access_token: '{ha_token}', token_type: 'Bearer'}}));") driver.get(task["url"]) time.sleep(int(wait))