This commit is contained in:
Martin Bauer
2020-05-03 14:41:27 +00:00
parent feb05f63df
commit d3c7e18d38
11 changed files with 1093 additions and 54 deletions

View File

@@ -57,7 +57,7 @@ class SispmctlHost:
async def update_state(self):
url = f"http://{self.hostname}:{self.port}"
async with self._session.get(url, timeout=20) as resp:
async with self._session.get(url, timeout=3) as resp:
if resp.status == 200:
result = await resp.json()
await self.notify_switches(result)