Skip to content

Instantly share code, notes, and snippets.

@lovie
lovie / main.py
Last active January 10, 2026 23:49
Fetch Blink tokens for a workaround for auth with homebridge-blink-for-home-new
import asyncio
from aiohttp import ClientSession
from blinkpy.blinkpy import Blink
from blinkpy.auth import Auth, BlinkTwoFARequiredError
USERNAME = "[email protected]"
PASSWORD = "***"
TOKENS_FILE = "tokens.txt"