From 4ff141d35e0d3c727a2e17300c124318fedcdb65 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Fri, 5 Dec 2025 18:05:09 +0100 Subject: [PATCH] Move example image path out of translatable strings (#158053) --- .../components/google_generative_ai_conversation/__init__.py | 1 + .../components/google_generative_ai_conversation/strings.json | 2 +- homeassistant/components/google_photos/services.py | 1 + homeassistant/components/google_photos/strings.json | 2 +- homeassistant/components/onedrive/services.py | 1 + homeassistant/components/onedrive/strings.json | 2 +- 6 files changed, 6 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/google_generative_ai_conversation/__init__.py b/homeassistant/components/google_generative_ai_conversation/__init__.py index 82561d9f75e..ddd9f20377d 100644 --- a/homeassistant/components/google_generative_ai_conversation/__init__.py +++ b/homeassistant/components/google_generative_ai_conversation/__init__.py @@ -149,6 +149,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: } ), supports_response=SupportsResponse.ONLY, + description_placeholders={"example_image_path": "/config/www/image.jpg"}, ) return True diff --git a/homeassistant/components/google_generative_ai_conversation/strings.json b/homeassistant/components/google_generative_ai_conversation/strings.json index b908c872e1c..a18b15b8358 100644 --- a/homeassistant/components/google_generative_ai_conversation/strings.json +++ b/homeassistant/components/google_generative_ai_conversation/strings.json @@ -162,7 +162,7 @@ "fields": { "filenames": { "description": "Attachments to add to the prompt (images, PDFs, etc)", - "example": "/config/www/image.jpg", + "example": "{example_image_path}", "name": "Attachment filenames" }, "prompt": { diff --git a/homeassistant/components/google_photos/services.py b/homeassistant/components/google_photos/services.py index c30259416e5..3141ce25822 100644 --- a/homeassistant/components/google_photos/services.py +++ b/homeassistant/components/google_photos/services.py @@ -159,4 +159,5 @@ def async_setup_services(hass: HomeAssistant) -> None: _async_handle_upload, schema=UPLOAD_SERVICE_SCHEMA, supports_response=SupportsResponse.OPTIONAL, + description_placeholders={"example_image_path": "/config/www/image.jpg"}, ) diff --git a/homeassistant/components/google_photos/strings.json b/homeassistant/components/google_photos/strings.json index 443645a6eb1..49d0daa3b96 100644 --- a/homeassistant/components/google_photos/strings.json +++ b/homeassistant/components/google_photos/strings.json @@ -92,7 +92,7 @@ }, "filename": { "description": "Path to the image or video to upload.", - "example": "/config/www/image.jpg", + "example": "{example_image_path}", "name": "Filename" } }, diff --git a/homeassistant/components/onedrive/services.py b/homeassistant/components/onedrive/services.py index 971a4da1f6b..2cf4ffc7475 100644 --- a/homeassistant/components/onedrive/services.py +++ b/homeassistant/components/onedrive/services.py @@ -129,4 +129,5 @@ def async_setup_services(hass: HomeAssistant) -> None: async_handle_upload, schema=UPLOAD_SERVICE_SCHEMA, supports_response=SupportsResponse.OPTIONAL, + description_placeholders={"example_image_path": "/config/www/image.jpg"}, ) diff --git a/homeassistant/components/onedrive/strings.json b/homeassistant/components/onedrive/strings.json index 48b68852a12..2c4db4b2fd1 100644 --- a/homeassistant/components/onedrive/strings.json +++ b/homeassistant/components/onedrive/strings.json @@ -156,7 +156,7 @@ }, "filename": { "description": "Path to the file to upload.", - "example": "/config/www/image.jpg", + "example": "{example_image_path}", "name": "Filename" } },