Skip to content

Commit 7f0b7c3

Browse files
sidey79claude
andcommitted
chore(protocols): drop the obsolete sd_protocol_data stub
sd_protocol_data.py held three hand-written protocol entries and was the only thing importing them, while the runtime loads all 160 protocols from protocols.json via loader.py. Neither `protocols` nor `VERSION` was read anywhere in the repository. Keeping it around was actively misleading: README and the user guide named SDProtocolData as the protocol data source, so both now point at protocols.json and the generator that produces it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KBqRw2DPXbSzhGBqB55cFZ
1 parent b7ec1ec commit 7f0b7c3

4 files changed

Lines changed: 2 additions & 26 deletions

File tree

‎README.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Die SIGNALDuino-Firmware (Microcontroller-Code) wird in einem separaten Reposito
3434
* **Vollständig asynchron** – Basierend auf `asyncio` für hohe Performance und einfache Integration in asynchrone Anwendungen.
3535
* **MQTT-Integration** – Automatisches Publizieren dekodierter Nachrichten in konfigurierbare Topics und Empfang von Steuerbefehlen (z.B. `version`, `set`, `mqtt`).
3636
* **Unterstützte Transporte** – Serielle Verbindung (über `pyserial-asyncio`) und TCP-Verbindung.
37-
* **Umfangreiche Protokollbibliothek** – Portierung der originalen FHEM‑SIGNALDuino‑Protokolle mit `SDProtocols` und `SDProtocolData`.
37+
* **Umfangreiche Protokollbibliothek** – Portierung der originalen FHEM‑SIGNALDuino‑Protokolle über `SDProtocols`; die Protokolldefinitionen liegen in `sd_protocols/protocols.json`.
3838
* **Konfiguration über Umgebungsvariablen** – Einfache Einrichtung ohne Codeänderungen.
3939
* **Ausführbares Hauptprogramm** – `main.py` bietet eine sofort einsatzbereite Lösung mit Logging, Signalbehandlung und Timeout‑Steuerung.
4040
* **Komprimierte Datenübertragung** – Effiziente Payload‑Kompression für MQTT‑Nachrichten.

‎docs/01_user_guide/index.adoc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Die Hauptkomponenten sind:
8787

8888
3. **Protokollbibliothek** (`sd_protocols`):
8989
* `SDProtocols` – Hauptklasse für Protokollerkennung und ‑dekodierung.
90-
* `SDProtocolData` – Datenstrukturen für Protokolldefinitionen.
90+
* `protocols.json` – Protokolldefinitionen, erzeugt aus den FHEM‑Perl‑Quellen via `tools/convert.pl`.
9191

9292
4. **Controller** (`signalduino.controller`):
9393
* `SignalduinoController` – Zentrale Steuerungsklasse, koordiniert Transport, Parser und MQTT.

‎sd_protocols/__init__.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# Ermöglicht den Import als Paket
22
from .sd_protocols import SDProtocols
3-
from .sd_protocol_data import protocols, VERSION

‎sd_protocols/sd_protocol_data.py‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)