Skip to content

Commit

Permalink
Merge pull request #45 from iprak/incorrect_data_fetch_after_token_ex…
Browse files Browse the repository at this point in the history
…piration

Incorrect data fetch after token expiration
  • Loading branch information
iprak authored Mar 22, 2024
2 parents 2d1eb91 + 628092b commit 67acbdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/sensi/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ async def _async_update_data(self) -> dict[str, SensiDevice]:
raise ConfigEntryAuthFailed from exception_inner

# Try updating data again with new token
return self._fetch_device_data()
return await self._fetch_device_data()

async def _fetch_device_data(self) -> dict[str, SensiDevice]:
"""Fetch device data from url."""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/sensi/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": [],
"codeowners": ["@iprak"],
"issue_tracker": "https://github.com/iprak/sensi/issues",
"version": "1.3.4",
"version": "1.3.5",
"config_flow": true,
"iot_class": "cloud_polling"
}

0 comments on commit 67acbdb

Please sign in to comment.