Skip to content

Commit

Permalink
better debug on packet_received
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Nov 2, 2023
1 parent ae298dd commit 0ec30eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/ZigpyTransport/AppGeneric.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def packet_received(self, packet: t.ZigbeePacket) -> None:
self.log.logging("TransportZigpy", "Debug", "packet_received Unknown device %r" %packet.src)
return

self.log.logging("TransportZigpy", "Debug", "packet_received identified device - %s (%s)" % (str(sender), type(sender)))
self.log.logging("TransportZigpy", "Debug", "packet_received identified device %r -> %r with source route %r" %(
packet.src.address, packet.dst.address, packet.source_route ))

profile, cluster, src_ep, dst_ep = packet.profile_id, packet.cluster_id, packet.src_ep, packet.dst_ep
message = packet.data.serialize()
Expand Down

0 comments on commit 0ec30eb

Please sign in to comment.