Add the ability to pass the name the reconnect logic when running logs (#639)

This commit is contained in:
J. Nick Koston 2023-11-15 00:55:39 -06:00 committed by GitHub
parent f1956aa598
commit e6257a8627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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