Victron shunt
Opened this issue · 0 comments
File "/app/venv/lib/python3.12/site-packages/bleak/backends/scanner.py", line 205, in find_device_by_address
return await cls.find_device_by_filter(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.12/site-packages/bleak/backends/scanner.py", line 234, in find_device_by_filter
async with cls(detection_callback=apply_filter, **kwargs):
File "/app/venv/lib/python3.12/site-packages/bleak/backends/scanner.py", line 79, in aenter
await self.start()
File "/app/venv/lib/python3.12/site-packages/bleak/backends/bluezdbus/scanner.py", line 115, in start
reply = await self._bus.call(
^^^^^^^^^^^^^^^^^^^^^
File "/app/venv/lib/python3.12/site-packages/dbus_next/aio/message_bus.py", line 305, in call
await future
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/main.py", line 36, in fetch_loop
if await fn():
^^^^^^^^^^
File "/app/main.py", line 319, in fn
cannot connect to Victron shunt.
raise exceptions[0]
File "/app/main.py", line 314, in fn
await t()
File "/app/bmslib/sampling.py", line 155, in call
s = await self._sample_inner()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/bmslib/sampling.py", line 227, in _sample_inner
async with bms:
File "/app/bmslib/bt.py", line 345, in aenter
await self.connect()
File "/app/bmslib/models/victron.py", line 84, in connect
await super().connect(timeout=timeout)
File "/app/bmslib/bt.py", line 237, in connect
await self._connect_client(timeout=timeout)
File "/app/bmslib/bt.py", line 186, in _connect_client
await asyncio.wait_for(self.client.connect(timeout=timeout), timeout=timeout + 1)
File "/usr/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
async with timeouts.timeout(timeout):
File "/usr/lib/python3.12/asyncio/timeouts.py", line 115, in aexit
raise TimeoutError from exc_val
TimeoutError