Skip to content

Commit

Permalink
Typing
Browse files Browse the repository at this point in the history
# Conflicts:
#	custom_components/battery_notes/library_updater.py

# Conflicts:
#	custom_components/battery_notes/library.py
  • Loading branch information
andrew-codechimp committed Nov 24, 2024
1 parent 80d393f commit a1ad05f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions custom_components/battery_notes/library_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,9 @@ def __init__(
self._library_url = library_url
self._session = session

async def async_get_data(self) -> any:
"""Get data from the hosted library."""
_LOGGER.debug(f"Updating library from {self._library_url}")
return await self._api_wrapper(method="get", url=self._library_url)
async def async_get_data(self) -> Any:
"""Get data from the API."""
return await self._api_wrapper(method="get", url=CONF_LIBRARY_URL)

async def _api_wrapper(
self,
Expand Down

0 comments on commit a1ad05f

Please sign in to comment.