Ernst79 / bleparser

Parser for passive BLE advertisements
MIT License
29 stars 15 forks source link

Fix unbound local var with Inkbird@IBBQ-4BW #33

Closed bdraco closed 2 years ago

bdraco commented 2 years ago

The data it sends is b'\x00\x00\x01\x10\x11$\x9f\x89\xed\xe0"' which happens to be 11 bytes but it does not have the sps or tps in name

bdraco commented 2 years ago

There is a guard to not get here in __init__ but I'm calling parse_inkbird directly for inkbird devices here

https://github.com/home-assistant/core/pull/74778/files#diff-80178c728fc771a75b569ba048bcd4cc9918017cc2572c39d68dc79f8dd15c26R6

https://github.com/bdraco/home-assistant/blob/govee_ble/homeassistant/components/inkbird/data.py