hassio-bluetti-bt icon indicating copy to clipboard operation
hassio-bluetti-bt copied to clipboard

[Bug]: Integration stop working

Open Kathou99 opened this issue 8 months ago • 3 comments

What happened?

All the data was unavailable so I deleted the bluetti AC200L from HA and I try to re-add to see if it is working but it's seem it's not doing anythings

What version of our software are you running?

0.1.1

What device are you seeing the problem on?

All device

What bluetooth connection are you using?

USB dongle

Have you changed the integration settings?

false

Integration settings (if you changed them)

No response

Relevant log output

Unexpected error fetching Bluetti polling coordinator data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bluetti_bt/coordinator.py", line 78, in _async_update_data
    return await self.reader.read_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bluetti_bt/bluetti_bt_lib/bluetooth/device_reader.py", line 91, in read_data
    parsed = self.bluetti_device.parse(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bluetti_bt/bluetti_bt_lib/base_devices/BluettiDevice.py", line 20, in parse
    return self.struct.parse(address, data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bluetti_bt/bluetti_bt_lib/utils/struct.py", line 199, in parse
    val = f.parse(field_data)
          ^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bluetti_bt/bluetti_bt_lib/utils/struct.py", line 94, in parse
    return (val / 10 ** self.scale) * self.multiplier
           ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for *: 'decimal.Decimal' and 'float'

Kathou99 avatar Jun 15 '24 17:06 Kathou99