Skip to content

Instantly share code, notes, and snippets.

@lovie
lovie / main.py
Last active January 17, 2026 07:23
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 = "user.name@gmail.com"
PASSWORD = "***"
TOKENS_FILE = "tokens.txt"