vanviegen / hue-thief

Factory reset Philips Hue bulbs using an EZSP-based Zigbee USB stick. After a reset, bulbs can easily join any type of compatible bridge.
GNU General Public License v3.0
178 stars 20 forks source link

Fix pcap dump when frame is a LVBytes object #31

Closed evanpurkhiser closed 3 weeks ago

evanpurkhiser commented 1 month ago

Some frames come back as LVBytes ^1. This is a subtype of bytes so we can just cast it. Without the cast the pcap.dump will error with pure_pcapy.PcapError: can dump only bytes.

Fixes https://github.com/vanviegen/hue-thief/issues/30

vanviegen commented 3 weeks ago

Thanks for sharing!