mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-21 11:55:11 +01:00
Fix example code indentation in READMY.rst (#18)
This commit is contained in:
parent
076fb6cc97
commit
33ad17f99c
@ -74,7 +74,7 @@ Subscribe to state changes of an ESPHome device.
|
||||
|
||||
await cli.connect(login=True)
|
||||
|
||||
def change_callback(state):
|
||||
def change_callback(state):
|
||||
"""Print the state changes of the device.."""
|
||||
print(state)
|
||||
|
||||
@ -85,7 +85,7 @@ Subscribe to state changes of an ESPHome device.
|
||||
try:
|
||||
asyncio.ensure_future(main())
|
||||
loop.run_forever()
|
||||
except KeyboardInterrupt:
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
finally:
|
||||
loop.close()
|
||||
|
Loading…
Reference in New Issue
Block a user