Skip to content

Commit 4ff141d

Browse files
authored
Move example image path out of translatable strings (home-assistant#158053)
1 parent f12a43b commit 4ff141d

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

homeassistant/components/google_generative_ai_conversation/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ async def generate_content(call: ServiceCall) -> ServiceResponse:
149149
}
150150
),
151151
supports_response=SupportsResponse.ONLY,
152+
description_placeholders={"example_image_path": "/config/www/image.jpg"},
152153
)
153154
return True
154155

homeassistant/components/google_generative_ai_conversation/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
"fields": {
163163
"filenames": {
164164
"description": "Attachments to add to the prompt (images, PDFs, etc)",
165-
"example": "/config/www/image.jpg",
165+
"example": "{example_image_path}",
166166
"name": "Attachment filenames"
167167
},
168168
"prompt": {

homeassistant/components/google_photos/services.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,5 @@ def async_setup_services(hass: HomeAssistant) -> None:
159159
_async_handle_upload,
160160
schema=UPLOAD_SERVICE_SCHEMA,
161161
supports_response=SupportsResponse.OPTIONAL,
162+
description_placeholders={"example_image_path": "/config/www/image.jpg"},
162163
)

homeassistant/components/google_photos/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
},
9393
"filename": {
9494
"description": "Path to the image or video to upload.",
95-
"example": "/config/www/image.jpg",
95+
"example": "{example_image_path}",
9696
"name": "Filename"
9797
}
9898
},

homeassistant/components/onedrive/services.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,5 @@ async def async_handle_upload(call: ServiceCall) -> ServiceResponse:
129129
async_handle_upload,
130130
schema=UPLOAD_SERVICE_SCHEMA,
131131
supports_response=SupportsResponse.OPTIONAL,
132+
description_placeholders={"example_image_path": "/config/www/image.jpg"},
132133
)

homeassistant/components/onedrive/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
},
157157
"filename": {
158158
"description": "Path to the file to upload.",
159-
"example": "/config/www/image.jpg",
159+
"example": "{example_image_path}",
160160
"name": "Filename"
161161
}
162162
},

0 commit comments

Comments
 (0)