Remove loop argument (#155)

This commit is contained in:
Jesse Hills 2021-12-22 14:09:42 +13:00 committed by GitHub
parent 06a29b8997
commit 7d05c9b52a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)