Migrate Xiaomi Miio translations (#83300)

pull/83310/head
Franck Nijhof 2022-12-05 13:47:18 +01:00 committed by GitHub
parent e015f8bf8f
commit 303f203c2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 22 deletions

View File

@ -156,7 +156,7 @@ SELECTOR_TYPES = (
set_method="set_display_orientation",
set_method_error_message="Setting the display orientation failed.",
icon="mdi:tablet",
device_class="xiaomi_miio__display_orientation",
translation_key="display_orientation",
options=["forward", "left", "right"],
entity_category=EntityCategory.CONFIG,
),
@ -167,7 +167,7 @@ SELECTOR_TYPES = (
set_method="set_led_brightness",
set_method_error_message="Setting the led brightness failed.",
icon="mdi:brightness-6",
device_class="xiaomi_miio__led_brightness",
translation_key="led_brightness",
options=["bright", "dim", "off"],
entity_category=EntityCategory.CONFIG,
),
@ -178,7 +178,7 @@ SELECTOR_TYPES = (
set_method="set_ptc_level",
set_method_error_message="Setting the ptc level failed.",
icon="mdi:fire-circle",
device_class="xiaomi_miio__ptc_level",
translation_key="ptc_level",
options=["low", "medium", "high"],
entity_category=EntityCategory.CONFIG,
),

View File

@ -62,5 +62,30 @@
}
}
}
},
"entity": {
"select": {
"led_brightness": {
"state": {
"bright": "Bright",
"dim": "Dim",
"off": "Off"
}
},
"display_orientation": {
"state": {
"forward": "Forward",
"left": "Left",
"right": "Right"
}
},
"ptc_level": {
"state": {
"low": "Low",
"medium": "Medium",
"high": "High"
}
}
}
}
}

View File

@ -1,19 +0,0 @@
{
"state": {
"xiaomi_miio__led_brightness": {
"bright": "Bright",
"dim": "Dim",
"off": "Off"
},
"xiaomi_miio__display_orientation": {
"forward": "Forward",
"left": "Left",
"right": "Right"
},
"xiaomi_miio__ptc_level": {
"low": "Low",
"medium": "Medium",
"high": "High"
}
}
}

View File

@ -51,6 +51,31 @@
}
}
},
"entity": {
"select": {
"display_orientation": {
"state": {
"forward": "Forward",
"left": "Left",
"right": "Right"
}
},
"led_brightness": {
"state": {
"bright": "Bright",
"dim": "Dim",
"off": "Off"
}
},
"ptc_level": {
"state": {
"high": "High",
"low": "Low",
"medium": "Medium"
}
}
}
},
"options": {
"error": {
"cloud_credentials_incomplete": "Cloud credentials incomplete, please fill in username, password and country"