doorbell-listener: add PEP 723 inline deps for uv auto-resolve

uv run without a project file (pyproject.toml/requirements.txt) won't
auto-resolve from script imports — needs inline metadata per PEP 723.

Fix: add # /// script block declaring requests + paho-mqtt>=2.0.
This commit is contained in:
2026-07-01 00:35:35 -07:00
parent 90927ccc0e
commit c9ea2b9393
@@ -1,4 +1,11 @@
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "requests",
# "paho-mqtt>=2.0",
# ]
# ///
"""Doorbell ntfy listener.
Polls one or more ntfy topics and toggles a smart plug via zigbee2mqtt every