forgot to update reload_contacts

This commit is contained in:
Florent 2025-10-19 19:18:23 +02:00
parent d55cb1d8c5
commit 5a2cf3469d
2 changed files with 3 additions and 2 deletions

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "meshcore-cli"
version = "1.1.29"
version = "1.1.30"
authors = [
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
]

View file

@ -23,7 +23,7 @@ from prompt_toolkit.shortcuts import radiolist_dialog
from meshcore import MeshCore, EventType, logger
# Version
VERSION = "v1.1.29"
VERSION = "v1.1.30"
# default ble address is stored in a config file
MCCLI_CONFIG_DIR = str(Path.home()) + "/.config/meshcore/"
@ -1862,6 +1862,7 @@ async def next_cmd(mc, cmds, json_output=False):
case "reload_contacts" | "rc":
await mc.commands.get_contacts()
await mc.wait_for_event(EventType.CONTACTS, timeout=30)
res = mc.contacts
if json_output :
print(json.dumps(res, indent=4))