Skip to content

Commit

Permalink
Drop cloud credentials when reconfiguring to lan mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGarside committed Jan 20, 2025
1 parent 23b0fd6 commit 1739065
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/bambu_lab/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,12 +691,12 @@ async def async_step_Lan(
data = dict(self.config_entry.data)
options = {
"region": self.config_entry.options.get('region', ''),
"email": self.config_entry.options.get('email', ''),
"username": self.config_entry.options.get('username', ''),
"email": '',
"username": '',
"name": self.config_entry.options.get('name', ''),
"host": user_input['host'],
"local_mqtt": True,
"auth_token": self.config_entry.options.get('auth_token', ''),
"auth_token": '',
"access_code": user_input['access_code'],
"usage_hours": float(user_input['usage_hours'])
}
Expand Down

0 comments on commit 1739065

Please sign in to comment.