mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +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]):
|
class RenaultDataUpdateCoordinator(DataUpdateCoordinator[T]):
|
||||||
"""Handle vehicle communication with Renault servers."""
|
"""Handle vehicle communication with Renault servers."""
|
||||||
|
|
||||||
|
update_method: Callable[[], Awaitable[T]]
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
@ -50,8 +52,6 @@ class RenaultDataUpdateCoordinator(DataUpdateCoordinator[T]):
|
|||||||
|
|
||||||
async def _async_update_data(self) -> T:
|
async def _async_update_data(self) -> T:
|
||||||
"""Fetch the latest data from the source."""
|
"""Fetch the latest data from the source."""
|
||||||
if self.update_method is None:
|
|
||||||
raise NotImplementedError("Update method not implemented")
|
|
||||||
try:
|
try:
|
||||||
async with _PARALLEL_SEMAPHORE:
|
async with _PARALLEL_SEMAPHORE:
|
||||||
data = await self.update_method()
|
data = await self.update_method()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user