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)
|
await cli.connect(login=True)
|
||||||
|
|
||||||
def change_callback(state):
|
def change_callback(state):
|
||||||
"""Print the state changes of the device.."""
|
"""Print the state changes of the device.."""
|
||||||
print(state)
|
print(state)
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ Subscribe to state changes of an ESPHome device.
|
||||||
try:
|
try:
|
||||||
asyncio.ensure_future(main())
|
asyncio.ensure_future(main())
|
||||||
loop.run_forever()
|
loop.run_forever()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
loop.close()
|
loop.close()
|
||||||
|
|
Loading…
Reference in New Issue