diff --git a/screenshotter/config.yaml b/screenshotter/config.yaml index a51270e..01d40c4 100644 --- a/screenshotter/config.yaml +++ b/screenshotter/config.yaml @@ -1,6 +1,6 @@ --- name: E-Paper Screenshotter -version: 1.0.1.24 +version: 1.0.1.25 #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 8d14585..7417e80 100644 --- a/screenshotter/rootfs/app/app.py +++ b/screenshotter/rootfs/app/app.py @@ -1,6 +1,6 @@ from seleniumwire import webdriver -from seleniumwire.webdriver.chrome.options import Options -from seleniumwire.webdriver.common.desired_capabilities import DesiredCapabilities +from selenium.webdriver import ChromeOptions +from selenium.webdriver import DesiredCapabilities from PIL import Image import time, os import yaml @@ -25,7 +25,7 @@ ha_language = os.environ.get("SCREEN_HA_LANGUAGE", default="en") d = DesiredCapabilities.CHROME d['loggingPrefs'] = {'browser': 'ALL'} # Open another headless browser with height extracted above -chrome_options = Options() +chrome_options = ChromeOptions() chrome_options.add_argument("--headless") chrome_options.add_argument('--no-sandbox') chrome_options.add_argument(f"--window-size={width},{height}")