Skip to content

Commit

Permalink
fix issue of gett new host param
Browse files Browse the repository at this point in the history
  • Loading branch information
KiraPC committed Dec 16, 2024
1 parent 20e18b8 commit f6d1e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/switchbotremote/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def async_step_reconfigure(self, user_input: dict[str, Any] | None = None)
step_id="reconfigure",
data_schema=vol.Schema(
{
vol.Required("host", default=old_entry.data['host'] or "https://api.switch-bot.com"): str,
vol.Required("host", default=old_entry.data.get('host', "https://api.switch-bot.com")): str,
vol.Required("name", default=old_entry.data['name']): str,
vol.Required("token", default=old_entry.data['token']): str,
vol.Required("secret", default=old_entry.data['secret']): str,
Expand Down

0 comments on commit f6d1e8c

Please sign in to comment.