mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Update Huawei LTE config entry data on successful reconfig (#68727)
This commit is contained in:
parent
f05a6826de
commit
945028d43d
@ -183,15 +183,15 @@ class ConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
info, wlan_settings = await self.hass.async_add_executor_job(get_device_info)
|
info, wlan_settings = await self.hass.async_add_executor_job(get_device_info)
|
||||||
await self.hass.async_add_executor_job(logout)
|
await self.hass.async_add_executor_job(logout)
|
||||||
|
|
||||||
|
user_input[CONF_MAC] = get_device_macs(info, wlan_settings)
|
||||||
|
|
||||||
if not self.unique_id:
|
if not self.unique_id:
|
||||||
if serial_number := info.get("SerialNumber"):
|
if serial_number := info.get("SerialNumber"):
|
||||||
await self.async_set_unique_id(serial_number)
|
await self.async_set_unique_id(serial_number)
|
||||||
self._abort_if_unique_id_configured()
|
self._abort_if_unique_id_configured(updates=user_input)
|
||||||
else:
|
else:
|
||||||
await self._async_handle_discovery_without_unique_id()
|
await self._async_handle_discovery_without_unique_id()
|
||||||
|
|
||||||
user_input[CONF_MAC] = get_device_macs(info, wlan_settings)
|
|
||||||
|
|
||||||
title = (
|
title = (
|
||||||
self.context.get("title_placeholders", {}).get(CONF_NAME)
|
self.context.get("title_placeholders", {}).get(CONF_NAME)
|
||||||
or info.get("DeviceName") # device.information
|
or info.get("DeviceName") # device.information
|
||||||
|
Loading…
x
Reference in New Issue
Block a user