From e6257a8627b35e8e7236e4330a132ce4ab32c3f2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 15 Nov 2023 00:55:39 -0600 Subject: [PATCH] Add the ability to pass the name the reconnect logic when running logs (#639) --- aioesphomeapi/log_runner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aioesphomeapi/log_runner.py b/aioesphomeapi/log_runner.py index 28556d6..25a6c10 100644 --- a/aioesphomeapi/log_runner.py +++ b/aioesphomeapi/log_runner.py @@ -21,6 +21,7 @@ async def async_run( log_level: LogLevel = LogLevel.LOG_LEVEL_VERY_VERBOSE, aio_zeroconf_instance: AsyncZeroconf | None = None, dump_config: bool = True, + name: str | None = None, ) -> Callable[[], Coroutine[Any, Any, None]]: """Run logs until canceled. @@ -54,6 +55,7 @@ async def async_run( on_connect=on_connect, on_disconnect=on_disconnect, zeroconf_instance=aiozc.zeroconf, + name=name, ) await logic.start()