mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-01-15 20:31:42 +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,
|
log_level: LogLevel = LogLevel.LOG_LEVEL_VERY_VERBOSE,
|
||||||
aio_zeroconf_instance: AsyncZeroconf | None = None,
|
aio_zeroconf_instance: AsyncZeroconf | None = None,
|
||||||
dump_config: bool = True,
|
dump_config: bool = True,
|
||||||
|
name: str | None = None,
|
||||||
) -> Callable[[], Coroutine[Any, Any, None]]:
|
) -> Callable[[], Coroutine[Any, Any, None]]:
|
||||||
"""Run logs until canceled.
|
"""Run logs until canceled.
|
||||||
|
|
||||||
@ -54,6 +55,7 @@ async def async_run(
|
|||||||
on_connect=on_connect,
|
on_connect=on_connect,
|
||||||
on_disconnect=on_disconnect,
|
on_disconnect=on_disconnect,
|
||||||
zeroconf_instance=aiozc.zeroconf,
|
zeroconf_instance=aiozc.zeroconf,
|
||||||
|
name=name,
|
||||||
)
|
)
|
||||||
await logic.start()
|
await logic.start()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user