mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Cleanup dead code in renault coordinator (#132078)
This commit is contained in:
parent
755d36d82f
commit
e1772d25f2
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user