Migrate LaMetric translations (#83298)

This commit is contained in:
Franck Nijhof 2022-12-05 13:46:08 +01:00 committed by GitHub
parent b75eb71764
commit e015f8bf8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 9 deletions

View File

@ -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)),
),

View File

@ -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"
}
}
}
}
}

View File

@ -1,8 +0,0 @@
{
"state": {
"lametric__brightness_mode": {
"auto": "Automatic",
"manual": "Manual"
}
}
}

View File

@ -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.",