mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix LaMetric config flow for cloud import path (#133039)
This commit is contained in:
parent
b38a7186d2
commit
ed03c0a294
@ -249,7 +249,10 @@ class LaMetricFlowHandler(AbstractOAuth2FlowHandler, domain=DOMAIN):
|
||||
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}
|
||||
)
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user