micolous / cbus

Use Python to communicate with a Clipsal C-Bus PCI or CNI! Includes MQTT bridge (for Home Assistant), PCI simulator, and reverse engineering notes.
http://cbus.readthedocs.org/
GNU Lesser General Public License v3.0
49 stars 27 forks source link

Potential error in code #38

Open CABrouwers opened 2 years ago

CABrouwers commented 2 years ago

In module: pciprotocol.py within class PCIProtocol(CBusProtocol): within method definition def _send(self, cmd: Union[BasePacket], confirmation: bool = True, basic_mode: bool = False):

The Union contains only one element, BasePacket. Should there be other elements?