Skip to content

Commit

Permalink
Fix LaMetric config flow for cloud import path (#133039)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Dec 13, 2024
1 parent b38a718 commit ed03c0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion homeassistant/components/lametric/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ async def _async_step_create_entry(
device = await lametric.device()

if self.source != SOURCE_REAUTH:
await self.async_set_unique_id(device.serial_number)
await self.async_set_unique_id(
device.serial_number,
raise_on_progress=False,
)
self._abort_if_unique_id_configured(
updates={CONF_HOST: lametric.host, CONF_API_KEY: lametric.api_key}
)
Expand Down
5 changes: 4 additions & 1 deletion homeassistant/components/lametric/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
"api_key": "You can find this API key in [devices page in your LaMetric developer account](https://developer.lametric.com/user/devices)."
}
},
"user_cloud_select_device": {
"cloud_select_device": {
"data": {
"device": "Device"
},
"data_description": {
"device": "Select the LaMetric device to add"
}
}
Expand Down

0 comments on commit ed03c0a

Please sign in to comment.