mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Migrate Xiaomi Miio translations (#83300)
This commit is contained in:
parent
e015f8bf8f
commit
303f203c2a
@ -156,7 +156,7 @@ SELECTOR_TYPES = (
|
|||||||
set_method="set_display_orientation",
|
set_method="set_display_orientation",
|
||||||
set_method_error_message="Setting the display orientation failed.",
|
set_method_error_message="Setting the display orientation failed.",
|
||||||
icon="mdi:tablet",
|
icon="mdi:tablet",
|
||||||
device_class="xiaomi_miio__display_orientation",
|
translation_key="display_orientation",
|
||||||
options=["forward", "left", "right"],
|
options=["forward", "left", "right"],
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
),
|
),
|
||||||
@ -167,7 +167,7 @@ SELECTOR_TYPES = (
|
|||||||
set_method="set_led_brightness",
|
set_method="set_led_brightness",
|
||||||
set_method_error_message="Setting the led brightness failed.",
|
set_method_error_message="Setting the led brightness failed.",
|
||||||
icon="mdi:brightness-6",
|
icon="mdi:brightness-6",
|
||||||
device_class="xiaomi_miio__led_brightness",
|
translation_key="led_brightness",
|
||||||
options=["bright", "dim", "off"],
|
options=["bright", "dim", "off"],
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
),
|
),
|
||||||
@ -178,7 +178,7 @@ SELECTOR_TYPES = (
|
|||||||
set_method="set_ptc_level",
|
set_method="set_ptc_level",
|
||||||
set_method_error_message="Setting the ptc level failed.",
|
set_method_error_message="Setting the ptc level failed.",
|
||||||
icon="mdi:fire-circle",
|
icon="mdi:fire-circle",
|
||||||
device_class="xiaomi_miio__ptc_level",
|
translation_key="ptc_level",
|
||||||
options=["low", "medium", "high"],
|
options=["low", "medium", "high"],
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
),
|
),
|
||||||
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -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": {
|
"options": {
|
||||||
"error": {
|
"error": {
|
||||||
"cloud_credentials_incomplete": "Cloud credentials incomplete, please fill in username, password and country"
|
"cloud_credentials_incomplete": "Cloud credentials incomplete, please fill in username, password and country"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user