mirror of
https://github.com/home-assistant/core.git
synced 2026-04-02 16:36:08 +01:00
Add missing translations for Telegram bot (#166581)
Co-authored-by: Robert Resch <robert@resch.dev>
This commit is contained in:
@@ -188,7 +188,7 @@ class OptionsFlowHandler(OptionsFlow):
|
||||
)
|
||||
|
||||
|
||||
class TelgramBotConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
class TelegramBotConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
"""Handle a config flow for Telegram."""
|
||||
|
||||
VERSION = 1
|
||||
|
||||
@@ -225,9 +225,9 @@ send_media_group:
|
||||
multiple: true
|
||||
label_field: url
|
||||
description_field: caption
|
||||
translation_key: "media"
|
||||
fields:
|
||||
media_type:
|
||||
label: Media type
|
||||
selector:
|
||||
select:
|
||||
options:
|
||||
@@ -237,20 +237,16 @@ send_media_group:
|
||||
- "video"
|
||||
translation_key: "media_type"
|
||||
caption:
|
||||
label: Caption
|
||||
selector:
|
||||
text:
|
||||
url:
|
||||
label: URL
|
||||
selector:
|
||||
text:
|
||||
type: url
|
||||
verify_ssl:
|
||||
label: Verify SSL
|
||||
selector:
|
||||
boolean:
|
||||
authentication:
|
||||
label: Authentication
|
||||
selector:
|
||||
select:
|
||||
options:
|
||||
@@ -259,16 +255,13 @@ send_media_group:
|
||||
- "bearer_token"
|
||||
translation_key: "authentication"
|
||||
username:
|
||||
label: Username
|
||||
selector:
|
||||
text:
|
||||
password:
|
||||
label: Password
|
||||
selector:
|
||||
text:
|
||||
type: password
|
||||
file:
|
||||
label: File
|
||||
selector:
|
||||
text:
|
||||
parse_mode:
|
||||
|
||||
@@ -279,6 +279,18 @@
|
||||
"upload_voice": "Uploading voice"
|
||||
}
|
||||
},
|
||||
"media": {
|
||||
"fields": {
|
||||
"authentication": "Authentication",
|
||||
"caption": "Caption",
|
||||
"file": "File",
|
||||
"media_type": "Media type",
|
||||
"password": "Password",
|
||||
"url": "URL",
|
||||
"username": "Username",
|
||||
"verify_ssl": "Verify SSL"
|
||||
}
|
||||
},
|
||||
"media_type": {
|
||||
"options": {
|
||||
"animation": "Animation",
|
||||
|
||||
Reference in New Issue
Block a user