Fix reauth in Overkiz for config entries created prior to 2022.12 (#106251)
* Fix #106204 * Use api type variable
This commit is contained in:
parent
93d6f0a780
commit
6471397d09
1 changed files with 2 additions and 2 deletions
|
@ -354,9 +354,9 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
|
||||
self._user = self._reauth_entry.data[CONF_USERNAME]
|
||||
self._server = self._reauth_entry.data[CONF_HUB]
|
||||
self._api_type = self._reauth_entry.data[CONF_API_TYPE]
|
||||
self._api_type = self._reauth_entry.data.get(CONF_API_TYPE, APIType.CLOUD)
|
||||
|
||||
if self._reauth_entry.data[CONF_API_TYPE] == APIType.LOCAL:
|
||||
if self._api_type == APIType.LOCAL:
|
||||
self._host = self._reauth_entry.data[CONF_HOST]
|
||||
|
||||
return await self.async_step_user(dict(entry_data))
|
||||
|
|
Loading…
Add table
Reference in a new issue