mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-12 10:33:57 +01:00
Add the ability to pass the name the reconnect logic when running logs (#639)
This commit is contained in:
parent
f1956aa598
commit
e6257a8627
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user