Skip to content

Commit

Permalink
fix duplicate declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-mattioli committed Jan 20, 2024
1 parent 5b61209 commit 8af3b84
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions custom_components/bticino_x8000/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,6 @@ async def update_token(now):
hass.config_entries.async_forward_entry_setup(config_entry, "climate")
)

async def update_token(now):
_LOGGER.debug("Refreshing access token")
(
access_token,
refresh_token,
access_token_expires_on,
) = await refresh_access_token(data)

data["access_token"] = access_token
data["refresh_token"] = refresh_token
data["access_token_expires_on"] = dt_util.as_utc(access_token_expires_on)
hass.config_entries.async_update_entry(config_entry, data=data)

return True


Expand Down

0 comments on commit 8af3b84

Please sign in to comment.