mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +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()
|
device = await lametric.device()
|
||||||
|
|
||||||
if self.source != SOURCE_REAUTH:
|
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(
|
self._abort_if_unique_id_configured(
|
||||||
updates={CONF_HOST: lametric.host, CONF_API_KEY: lametric.api_key}
|
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)."
|
"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": {
|
"data": {
|
||||||
|
"device": "Device"
|
||||||
|
},
|
||||||
|
"data_description": {
|
||||||
"device": "Select the LaMetric device to add"
|
"device": "Select the LaMetric device to add"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user