mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Lock Netgear api during setup (#66033)
This commit is contained in:
parent
afd0005a31
commit
f9c81dd00b
@ -123,8 +123,9 @@ class NetgearRouter:
|
||||
|
||||
async def async_setup(self) -> bool:
|
||||
"""Set up a Netgear router."""
|
||||
if not await self.hass.async_add_executor_job(self._setup):
|
||||
return False
|
||||
async with self._api_lock:
|
||||
if not await self.hass.async_add_executor_job(self._setup):
|
||||
return False
|
||||
|
||||
# set already known devices to away instead of unavailable
|
||||
device_registry = dr.async_get(self.hass)
|
||||
|
Loading…
x
Reference in New Issue
Block a user