different language select
This commit is contained in:
parent
f168fba23a
commit
31ae148476
2 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: E-Paper Screenshotter
|
name: E-Paper Screenshotter
|
||||||
version: 1.0.1.16
|
version: 1.0.1.17
|
||||||
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
|
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
|
||||||
slug: screenshotter
|
slug: screenshotter
|
||||||
description: Screenshot images for E-Paper pricetags
|
description: Screenshot images for E-Paper pricetags
|
||||||
|
|
|
@ -58,7 +58,6 @@ while True:
|
||||||
if task.get("ha_auth"):
|
if task.get("ha_auth"):
|
||||||
print("Doing 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('hassTokens', JSON.stringify({{hassUrl: '{ha_url}', access_token: '{ha_token}', token_type: 'Bearer'}}));")
|
||||||
driver.execute_script(f"window.localStorage.setItem('selectedLanguage', '\"{ha_language}\"');")
|
|
||||||
driver.get(task["url"])
|
driver.get(task["url"])
|
||||||
time.sleep(int(wait))
|
time.sleep(int(wait))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue