mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +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:
|
||||
"""Set up a Netgear router."""
|
||||
async with self._api_lock:
|
||||
if not await self.hass.async_add_executor_job(self._setup):
|
||||
return False
|
||||
|
||||
|
Reference in New Issue
Block a user