Fix how i added the argument to runhook and _runhook

This commit is contained in:
Carson Coder 2025-10-13 20:59:11 -04:00
parent 3a69062a82
commit fd4fdd82c4

View file

@ -3886,7 +3886,7 @@ def _runhook(
ip: str, ip: str,
at: float, at: float,
txt: str, txt: str,
other: dict other: dict = {},
) -> dict[str, Any]: ) -> dict[str, Any]:
ret = {"rc": 0} ret = {"rc": 0}
areq, chk, imp, fork, sin, jtxt, wait, sp_ka, acmd = _parsehook(log, cmd) areq, chk, imp, fork, sin, jtxt, wait, sp_ka, acmd = _parsehook(log, cmd)
@ -3982,7 +3982,7 @@ def runhook(
ip: str, ip: str,
at: float, at: float,
txt: str, txt: str,
other: dict, other: dict = {},
) -> dict[str, Any]: ) -> dict[str, Any]:
assert broker or up2k # !rm assert broker or up2k # !rm
args = (broker or up2k).args # type: ignore args = (broker or up2k).args # type: ignore