Support old tradfri config format (#16841)
This commit is contained in:
1 parent
4a4c07ac1b
commit
2b2502c91c
2 files changed
+34
-1
No files matched your search
@@ -95,7 +95,9 @@ class FlowHandler(config_entries.ConfigFlow):
|
||||
|
||||
try:
|
||||
data = await get_gateway_info(
|
||||
self.hass, user_input['host'], user_input['identity'],
|
||||
self.hass, user_input['host'],
|
||||
# Old config format had a fixed identity
|
||||
user_input.get('identity', 'homeassistant'),
|
||||
user_input['key'])
|
||||
|
||||
data[CONF_IMPORT_GROUPS] = user_input[CONF_IMPORT_GROUPS]
|
||||
|
||||
Reference in new issue
Block a user