From 26c4e52864e6e5761819e9df0e3472302ebbd075 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Wed, 8 Feb 2023 23:22:52 +0100 Subject: [PATCH] lang --- 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 f78d6da..cf58ca0 100644 --- a/screenshotter/config.yaml +++ b/screenshotter/config.yaml @@ -1,6 +1,6 @@ --- name: E-Paper Screenshotter -version: 1.0.1.14 +version: 1.0.1.15 #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 d3c6e4d..c7785d8 100644 --- a/screenshotter/rootfs/app/app.py +++ b/screenshotter/rootfs/app/app.py @@ -56,7 +56,7 @@ while True: if task.get("ha_auth"): print("Doing HA Auth") 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('selectedLanguage', '{ha_language}');") + driver.execute_script(f"window.localStorage.setItem('selectedLanguage', '\"{ha_language}\"');") driver.get(task["url"]) time.sleep(int(wait))