Skip to content

Commit

Permalink
fix: bug in _async_refresh_data function (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Jun 28, 2024
1 parent bb824a5 commit 67789a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/openei/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ async def _async_update_data(self) -> dict:
raise UpdateFailed() from exception
return self._data

async def _async_refresh_data(self) -> None:
async def _async_refresh_data(self, data=None) -> None:
"""Update data via library."""
_LOGGER.debug("_async_refresh_data data: %s", str(data))
delta = timedelta(hours=1)
now = datetime.now()
next_hour = (now + delta).replace(microsecond=0, second=1, minute=0)
Expand Down

0 comments on commit 67789a4

Please sign in to comment.