mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2025-01-04 18:58:05 +01:00
Avoid closing the churning zeroconf instances in the host resolver (#730)
This commit is contained in:
parent
aded2d28b5
commit
c9091cbefc
@ -39,7 +39,10 @@ async def main(argv: list[str]) -> None:
|
|||||||
time_ = datetime.now()
|
time_ = datetime.now()
|
||||||
message: bytes = msg.message
|
message: bytes = msg.message
|
||||||
text = message.decode("utf8", "backslashreplace")
|
text = message.decode("utf8", "backslashreplace")
|
||||||
print(f"[{time_.hour:02}:{time_.minute:02}:{time_.second:02}]{text}")
|
nanoseconds = time_.microsecond // 1000
|
||||||
|
print(
|
||||||
|
f"[{time_.hour:02}:{time_.minute:02}:{time_.second:02}.{nanoseconds:03}]{text}"
|
||||||
|
)
|
||||||
|
|
||||||
stop = await async_run(cli, on_log)
|
stop = await async_run(cli, on_log)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user