J. Nick Koston
J. Nick Koston
> Most of the values read by HA are correct though, its just that sometimes it randomly gives some weird value as shown on the pictures above. Wouldn't you need...
The parser code is here https://github.com/bluetooth-devices/govee-ble
> Got a few: > > ## first one: > Advertisement: > > ``` > 2024-02-15 18:50:15.857 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] hci0 (B8:27:EB:B1:21:B8) [connectable]: C4:38:30:34:31:1C AdvertisementData(local_name='GVH5104_311C', manufacturer_data={1: b'\x01\x01\x03\xfc&b', 76: b'\x02\x15INTELLI_ROCKS_HWPu\xf2\xff\x0c'}, service_uuids=['0000ec88-0000-1000-8000-00805f9b34fb'],...
It could also be caused by corrupted advertising data. Which Bluetooth adapter are you using?
Probably needs a review from Paulus or Mike as I'm not familiar with this code enough for scope of these changes
We use `urlsplit` from standard lib so we likely need to wait for https://github.com/python/cpython/issues/99962
> ⁂ even more niche "issue": > > ``` > >>> yarl.URL("http://example.com:80/") == yarl.URL("http://example.com:/") > False > ``` We don't do any port normalizing in `__eq__` or `__hash__` #1033 did...