Skip to content

Commit 26eca96

Browse files
committed
Fix config flow
1 parent 523314c commit 26eca96

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

custom_components/bluecon/config_flow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ async def async_step_user(self, user_input: dict[str, Any] | None = None) -> Flo
8686

8787
async def async_step_reconfigure(self, user_input: dict[str, Any] | None = None):
8888
error_info: dict[str, str] = {}
89-
entry = self.hass.config_entries.async_entry_for_domain_unique_id(DOMAIN, user_input[CONF_USERNAME])
9089

9190
if user_input is not None:
9291
try:
92+
entry = self.hass.config_entries.async_entry_for_domain_unique_id(DOMAIN, user_input[CONF_USERNAME])
93+
9394
tokenStorage: IOAuthTokenStorage = ConfigFolderOAuthTokenStorage(self.hass)
9495
notificationInfoStorage: INotificationInfoStorage = ConfigFolderNotificationInfoStorage(self.hass)
9596
await BlueConAPI.create(

0 commit comments

Comments
 (0)