From a1ad05f02b60798ae9a602ff7fa6a22663eea657 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Tue, 12 Nov 2024 14:31:13 +0000 Subject: [PATCH] Typing # Conflicts: # custom_components/battery_notes/library_updater.py # Conflicts: # custom_components/battery_notes/library.py --- custom_components/battery_notes/library_updater.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/custom_components/battery_notes/library_updater.py b/custom_components/battery_notes/library_updater.py index 7294aa870..81e1ff4db 100644 --- a/custom_components/battery_notes/library_updater.py +++ b/custom_components/battery_notes/library_updater.py @@ -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,