Skip to content

Commit

Permalink
Disable warning when receiving OP_SYNC, as a controller does not need…
Browse files Browse the repository at this point in the history
… to take action
  • Loading branch information
Breina committed Jul 9, 2023
1 parent 5687c30 commit 7969dda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/artnet_led/client/artnet_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,11 @@ def handle_datagram(self, addr, data):
log.debug(f"Received DMX data from {addr[0]}\n"
f" Address: {dmx.port_address}")
self.handle_dmx(dmx)

elif opcode == OpCode.OP_SYNC:
# No action
pass

else:
log.warning(f"Received Opcode {opcode}, which isn't supported yet!")

Expand Down

0 comments on commit 7969dda

Please sign in to comment.