mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Always send ozw network key to add-on config (#43938)
This commit is contained in:
parent
5e6f5fca90
commit
a47cf27ed6
@ -147,9 +147,10 @@ class DomainConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
self.network_key = user_input[CONF_NETWORK_KEY]
|
||||
self.usb_path = user_input[CONF_USB_PATH]
|
||||
|
||||
new_addon_config = {CONF_ADDON_DEVICE: self.usb_path}
|
||||
if self.network_key:
|
||||
new_addon_config[CONF_ADDON_NETWORK_KEY] = self.network_key
|
||||
new_addon_config = {
|
||||
CONF_ADDON_DEVICE: self.usb_path,
|
||||
CONF_ADDON_NETWORK_KEY: self.network_key,
|
||||
}
|
||||
|
||||
if new_addon_config != self.addon_config:
|
||||
await self._async_set_addon_config(new_addon_config)
|
||||
|
Loading…
x
Reference in New Issue
Block a user