mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Migrate LaMetric translations (#83298)
This commit is contained in:
parent
b75eb71764
commit
e015f8bf8f
@ -40,8 +40,8 @@ SELECTS = [
|
||||
name="Brightness mode",
|
||||
icon="mdi:brightness-auto",
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
device_class="lametric__brightness_mode",
|
||||
options=["auto", "manual"],
|
||||
translation_key="brightness_mode",
|
||||
current_fn=lambda device: device.display.brightness_mode.value,
|
||||
select_fn=lambda api, opt: api.display(brightness_mode=BrightnessMode(opt)),
|
||||
),
|
||||
|
@ -49,5 +49,15 @@
|
||||
"title": "Manual migration required for LaMetric",
|
||||
"description": "The LaMetric integration has been modernized: It is now configured and set up via the user interface and the communcations are now local.\n\nUnfortunately, there is no automatic migration path possible and thus requires you to re-setup your LaMetric with Home Assistant. Please consult the Home Assistant LaMetric integration documentation on how to set it up.\n\nRemove the old LaMetric YAML configuration from your configuration.yaml file and restart Home Assistant to fix this issue."
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"select": {
|
||||
"brightness_mode": {
|
||||
"state": {
|
||||
"auto": "Automatic",
|
||||
"manual": "Manual"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
{
|
||||
"state": {
|
||||
"lametric__brightness_mode": {
|
||||
"auto": "Automatic",
|
||||
"manual": "Manual"
|
||||
}
|
||||
}
|
||||
}
|
@ -44,6 +44,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"select": {
|
||||
"brightness_mode": {
|
||||
"state": {
|
||||
"auto": "Automatic",
|
||||
"manual": "Manual"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"issues": {
|
||||
"manual_migration": {
|
||||
"description": "The LaMetric integration has been modernized: It is now configured and set up via the user interface and the communcations are now local.\n\nUnfortunately, there is no automatic migration path possible and thus requires you to re-setup your LaMetric with Home Assistant. Please consult the Home Assistant LaMetric integration documentation on how to set it up.\n\nRemove the old LaMetric YAML configuration from your configuration.yaml file and restart Home Assistant to fix this issue.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user