HclX / WyzeSensePy

A python script communicating with WyzeSense gateway
MIT License
91 stars 15 forks source link

Fixed issue where an unknown packet would cause library to forcibly exit #14

Closed raetha closed 3 years ago

raetha commented 4 years ago

Fixes #9

There appears to be a type of packet that the library couldn't handle with the asserts around the payload. This change causes those packets to be ignored without triggering a Python asset error and crashing all code using this library. Ideally someone with more hardware skills could figure out what the errant packet is and take a meaningful action. It may be related to a sensor running low on battery, but am unable to confirm for sure.

raetha commented 3 years ago

Nice to see you back!