alextud / ha-prana

Prana recuperators (fan) for Home Assistant
23 stars 2 forks source link

buffer size error #12

Open adysxp opened 1 year ago

adysxp commented 1 year ago

Hi,

Is Home assistant core installed.. maybe is not compatible?

A message handler raised an exception: unpack_from requires a buffer of at least 65 bytes for unpacking 2 bytes at offset 63 (actual buffer size is 15). Traceback (most recent call last): File "src/dbus_fast/message_bus.py", line 811, in dbus_fast.message_bus.BaseMessageBus._process_message File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/manager.py", line 860, in _parse_msg on_value_changed(message.path, self_interface["Value"]) File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 152, in on_value_changed callback(bytearray(value)) File "/config/custom_components/prana/prana.py", line 65, in handleNotification voc = int(struct.unpack_from(">h", data, 63)[0] & 0b0011_1111_1111_1111) struct.error: unpack_from requires a buffer of at least 65 bytes for unpacking 2 bytes at offset 63 (actual buffer size is 15)

alextud commented 1 year ago

I'm using HA using docker, haven't hit your issue ....

python --version Python 3.10.7

adysxp commented 1 year ago

If you don't mind, can you give me an email address?

adysxp commented 1 year ago

bash-5.1# python --version Python 3.10.7 bash-5.1# 03 01 02

Perfect-Web commented 9 months ago

same issue here ..., not running as docker but full os