Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = [
]
readme = "README.md"
license = {text = "GPL-3.0"}
requires-python = ">=3.11"
requires-python = ">=3.12"
dependencies = [
"click>=8.1",
"coloredlogs>=15.0",
Expand All @@ -22,7 +22,8 @@ dependencies = [
"zigpy-deconz>=0.25.0",
"zigpy-xbee>=0.22.0",
"zigpy-zigate>=0.14.0",
"zigpy-znp>=1.0.0"
"zigpy-znp>=1.0.0",
"zigpy-ziggurat>=1.1.1",
]

[tool.setuptools.packages.find]
Expand Down
9 changes: 9 additions & 0 deletions zigpy_cli/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"xbee": "zigpy_xbee",
"zigate": "zigpy_zigate",
"znp": "zigpy_znp",
"ziggurat": "zigpy_ziggurat",
}


Expand Down Expand Up @@ -66,6 +67,14 @@
"zigpy_znp": TRACE,
},
],
"ziggurat": [
{
"zigpy_ziggurat": logging.INFO,
},
{
"zigpy_ziggurat": logging.DEBUG,
},
],
}

RADIO_TO_PYPI = {name: mod.replace("_", "-") for name, mod in RADIO_TO_PACKAGE.items()}
4 changes: 3 additions & 1 deletion zigpy_cli/radio.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
@click.argument("radio", type=click.Choice(list(RADIO_TO_PACKAGE.keys())))
@click.argument("port", type=str)
@click.option("--baudrate", type=int, default=None)
@click.option("--flow-control", type=click.Choice(["software", "hardware", "none"]), default=None)
@click.option(
"--flow-control", type=click.Choice(["software", "hardware", "none"]), default=None
)
@click.option("--database", type=str, default=None)
@click_coroutine
async def radio(ctx, radio, port, baudrate=None, flow_control=None, database=None):
Expand Down
Loading