Cleanup dead code in renault coordinator (#132078)

This commit is contained in:
epenet 2024-12-02 21:56:13 +01:00 committed by GitHub
parent 755d36d82f
commit e1772d25f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,6 +27,8 @@ _PARALLEL_SEMAPHORE = asyncio.Semaphore(1)
class RenaultDataUpdateCoordinator(DataUpdateCoordinator[T]):
"""Handle vehicle communication with Renault servers."""
update_method: Callable[[], Awaitable[T]]
def __init__(
self,
hass: HomeAssistant,
@ -50,8 +52,6 @@ class RenaultDataUpdateCoordinator(DataUpdateCoordinator[T]):
async def _async_update_data(self) -> T:
"""Fetch the latest data from the source."""
if self.update_method is None:
raise NotImplementedError("Update method not implemented")
try:
async with _PARALLEL_SEMAPHORE:
data = await self.update_method()