mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Lock Netgear api during setup (#66033)
This commit is contained in:
@@ -123,6 +123,7 @@ class NetgearRouter:
|
|||||||
|
|
||||||
async def async_setup(self) -> bool:
|
async def async_setup(self) -> bool:
|
||||||
"""Set up a Netgear router."""
|
"""Set up a Netgear router."""
|
||||||
|
async with self._api_lock:
|
||||||
if not await self.hass.async_add_executor_job(self._setup):
|
if not await self.hass.async_add_executor_job(self._setup):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user