From 7d05c9b52a42a536664393078b5bfb55874e5f74 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 22 Dec 2021 14:09:42 +1300 Subject: [PATCH] Remove loop argument (#155) --- README.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 1af10a1..e4c4003 100644 --- a/README.rst +++ b/README.rst @@ -68,8 +68,7 @@ Subscribe to state changes of an ESPHome device. async def main(): """Connect to an ESPHome device and wait for state changes.""" - loop = asyncio.get_running_loop() - cli = aioesphomeapi.APIClient(loop, "api_test.local", 6053, "MyPassword") + cli = aioesphomeapi.APIClient("api_test.local", 6053, "MyPassword") await cli.connect(login=True)