Fix example code indentation in READMY.rst (#18)

This commit is contained in:
Tijs-B 2020-12-22 20:45:32 +01:00 committed by GitHub
parent 076fb6cc97
commit 33ad17f99c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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