From 073218b851bcf6b4057d55cb574a11e11ad93121 Mon Sep 17 00:00:00 2001 From: thekiwismarthome <134335563+thekiwismarthome@users.noreply.github.com> Date: Fri, 13 Feb 2026 15:07:18 +1300 Subject: [PATCH] Update const.py --- custom_components/shopping_list_manager/const.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/shopping_list_manager/const.py b/custom_components/shopping_list_manager/const.py index c081638..29b4d3f 100644 --- a/custom_components/shopping_list_manager/const.py +++ b/custom_components/shopping_list_manager/const.py @@ -64,6 +64,10 @@ IMAGE_FORMAT = "webp" IMAGE_SIZE = 200 # 200x200px IMAGE_QUALITY = 85 IMAGE_MAX_SIZE_KB = 15 +IMAGES_LOCAL_DIR = "www/shopping_list_manager/images" + +# Placeholder image (inline SVG) +PLACEHOLDER_IMAGE = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Crect width='200' height='200' fill='%23f0f0f0'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-family='Arial' font-size='16' fill='%23999'%3ENo Image%3C/text%3E%3C/svg%3E" # Metric Units (always metric, regardless of country) METRIC_UNITS = {