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