From 0060fd5af314cbaa75a05356cdbeff1e3e91bf38 Mon Sep 17 00:00:00 2001 From: Florent Date: Mon, 7 Apr 2025 13:37:24 +0200 Subject: [PATCH] bad cast in ch cmd --- pyproject.toml | 2 +- src/meshcore_cli/meshcore_cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0c8d270..b215fd9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore-cli" -version = "0.3.3" +version = "0.3.4" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, ] diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index fcf23c3..96c597c 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -96,7 +96,7 @@ async def next_cmd(mc, cmds): cmds[2])) case "chan_msg"|"ch" : argnum = 2 - print(await mc.send_chan_msg(cmds[1], cmds[2])) + print(await mc.send_chan_msg(int(cmds[1]), cmds[2])) case "def_chan_msg"|"def_chan"|"dch" : # default chan argnum = 1 print(await mc.send_chan_msg(0, cmds[1]))