aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/esphomeapi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/esphomeapi.py b/scripts/esphomeapi.py
index e0cbc67..57f4ebc 100644
--- a/scripts/esphomeapi.py
+++ b/scripts/esphomeapi.py
@@ -25,6 +25,7 @@ async def main(args):
address=args.address,
port=6053,
password='',
+ client_info="esphomeapi.py",
noise_psk=noise_psk)
log.debug('Connecting')
@@ -84,6 +85,7 @@ async def main(args):
async def on_disconnect() -> None:
log.debug('function on_disconnect()')
log.warning("Disconnected from API")
+ await asyncio.sleep(sleepsec)
reconnect = ReconnectLogic(
client=api,