Support old tradfri config format (#16841)

This commit is contained in:
Paulus Schoutsen 2018-09-25 11:57:32 +02:00 committed by Pascal Vizeli
parent 4a4c07ac1b
commit 2b2502c91c
2 changed files with 34 additions and 1 deletions

View file

@ -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]