Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loggin #247

Open
Didierp31 opened this issue Aug 5, 2024 · 1 comment
Open

Error loggin #247

Didierp31 opened this issue Aug 5, 2024 · 1 comment

Comments

@Didierp31
Copy link

Bms daly (dont know model)

Thanks

ERROR [main] Main loop exception: 'DalyBt' object has no attribute 'logger'

Logs :

00:31:41 INFO [main] Bleak version 0.13.1a1, BtBackend version bluez-v5.76
00:31:42 ERROR [main] Main loop exception: 'DalyBt' object has no attribute 'logger'
00:31:42 ERROR [main] Stack: Traceback (most recent call last):
File "/app/main.py", line 359, in
asyncio.run(main())
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/app/main.py", line 147, in main
bms = construct_bms(dev, verbose_log, devices)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/bmslib/models/init.py", line 63, in construct_bms
return bms_class(addr,
^^^^^^^^^^^^^^^
File "/app/bmslib/models/daly.py", line 65, in init
self.logger.warning('JBD usually does not use a pairing PIN')
^^^^^^^^^^^
AttributeError: 'DalyBt' object has no attribute 'logger'

@fl4p
Copy link
Owner

fl4p commented Aug 6, 2024

Remove the pin field from the Daly BMS device entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants