Skip to content

Commit

Permalink
fix: set data to default of None (#909)
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Tse <[email protected]>
  • Loading branch information
maruel and alandtse authored Mar 17, 2024
1 parent 865f933 commit cb1ccd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/tesla_custom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ async def _async_update_data(self):
)
_LOGGER.debug("Saving new tokens in config_entry")

data = None
try:
# Note: asyncio.TimeoutError and aiohttp.ClientError are already
# handled by the data update coordinator.
Expand Down

0 comments on commit cb1ccd6

Please sign in to comment.