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