Skip to content

Commit

Permalink
fix debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Nov 2, 2023
1 parent 4d8198b commit ae298dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/ZigpyTransport/AppGeneric.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ def packet_received(self, packet: t.ZigbeePacket) -> None:
"""Notify zigpy of a received Zigbee packet."""
try:
sender = self.get_device_with_address(packet.src)
self.log.logging("TransportZigpy", "Debug", "identified device - %s (%s)" %(str(sender), type(sender)) )
self.log.logging("TransportZigpy", "Debug", "packet_received identified device - %s (%s)" %(str(sender), type(sender)) )

except KeyError:
self.log.logging("TransportZigpy", "Debug", "Unknown device %r", packet.src)
self.log.logging("TransportZigpy", "Debug", "packet_received Unknown device %r" %packet.src)
return

self.log.logging("TransportZigpy", "Debug", "identified device - %s (%s)" % (str(sender), type(sender)))
self.log.logging("TransportZigpy", "Debug", "packet_received identified device - %s (%s)" % (str(sender), type(sender)))

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 ae298dd

Please sign in to comment.