| 1 | import asyncio |
| 2 | import logging |
| 3 | import pprint |
| 4 | |
| 5 | from flux_led.aioscanner import AIOBulbScanner |
| 6 | |
| 7 | logging.basicConfig(level=logging.DEBUG) |
| 8 | |
| 9 | |
| 10 | async def go(): |
| 11 | scanner = AIOBulbScanner() |
| 12 | pprint.pprint( |
| 13 | await scanner.async_enable_remote_access( |
| 14 | "192.168.106.198", "ra8815us02.magichue.net", 8815 |
| 15 | ) |
| 16 | ) |
| 17 | |
| 18 | |
| 19 | asyncio.run(go()) |