Remove loop argument (#155)
This commit is contained in:
parent
06a29b8997
commit
7d05c9b52a
|
@ -68,8 +68,7 @@ Subscribe to state changes of an ESPHome device.
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
"""Connect to an ESPHome device and wait for state changes."""
|
"""Connect to an ESPHome device and wait for state changes."""
|
||||||
loop = asyncio.get_running_loop()
|
cli = aioesphomeapi.APIClient("api_test.local", 6053, "MyPassword")
|
||||||
cli = aioesphomeapi.APIClient(loop, "api_test.local", 6053, "MyPassword")
|
|
||||||
|
|
||||||
await cli.connect(login=True)
|
await cli.connect(login=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue