remove debug out

This commit is contained in:
Jan-Henrik 2023-02-07 22:03:32 +01:00
parent af4f624a88
commit 8e2a5ab303
2 changed files with 1 additions and 3 deletions

View file

@ -1,6 +1,6 @@
---
name: Screenshotter
version: 1.0.1.9
version: 1.0.1.10
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
slug: screenshotter
description: Screenshot images for E-Paper pricetags

View file

@ -51,10 +51,8 @@ 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'}}));"))
print(driver.execute_script(f"return window.localStorage.getItem('hassTokens');"))
driver.get(task["url"])
time.sleep(int(wait))
print(driver.execute_script(f"return window.localStorage.getItem('hassTokens');"))
print("Making screenshot")