fix(keenetic): preserve URL scheme/ports and IPv4 polling

Use web_url scheme and host:port for API base URL instead of
forcing https. Force IPv4 in aiohttp to avoid IPv6 hangs on
KeenDNS. Sync canonical 24-router list with Russian names.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Андрей Бобырев
2026-05-22 00:52:11 +03:00
parent de99b60910
commit 746ecfc343
5 changed files with 232 additions and 87 deletions

View File

@@ -309,7 +309,7 @@ async def keenetic_monitor_loop():
await _refresh_device(dev)
except Exception as e:
logger.error(f"Keenetic refresh {dev['name']}: {e}")
await asyncio.sleep(2)
await asyncio.sleep(3)
except Exception as e:
logger.error(f"Keenetic monitor loop error: {e}")