mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-12-22 16:48:04 +01:00
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():
|
||||
"""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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user