quit driver after use

This commit is contained in:
Jan-Henrik 2023-02-18 13:59:28 +01:00
parent 69c44abf1b
commit 5098a9506a
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -91,6 +91,7 @@ while True:
file_name = f'{image_path}/{task["name"]}.png'
image.save(file_name)
tasks[i]["next_execution"] = task["croniter"].get_next(datetime.datetime)
driver.quit()
logging.info(f"Task finished, next execution: {tasks[i]['next_execution']}")
config_file_modified = os.path.getmtime(config_file)
if config_file_modified != config_file_modified_start: