Skip to content

Commit 9070f69

Browse files
authored
Ensure numeric values are passed for possibly None attributes (#131)
1 parent 07ac16d commit 9070f69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zigpy_xbee/zigbee/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ async def send_packet(self, packet: zigpy.types.ZigbeePacket) -> None:
221221
send_req = self._api.tx_explicit(
222222
long_addr,
223223
short_addr,
224-
packet.src_ep,
225-
packet.dst_ep,
224+
packet.src_ep or 0,
225+
packet.dst_ep or 0,
226226
packet.cluster_id,
227227
packet.profile_id,
228228
packet.radius,

0 commit comments

Comments
 (0)