bluew icon indicating copy to clipboard operation
bluew copied to clipboard

error on scan and get devices

Open bjoernh opened this issue 6 years ago • 3 comments

Hey, i try to scan for devices and i run into following error:

bluew.devices()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/bluew/api.py", line 32, in devices
    return engine.devices
  File "/tmp/bluew/dbusted/dbusted.py", line 126, in devices
    return boiface.get_devices()
  File "/tmp/bluew/dbusted/interfaces.py", line 615, in get_devices
    devices = tuple(map(lambda obj: Device(**obj), objects))
  File "/tmp/bluew/dbusted/interfaces.py", line 615, in <lambda>
    devices = tuple(map(lambda obj: Device(**obj), objects))
  File "/tmp/bluew/device.py", line 28, in __init__
    super().__init__(Device.attrs, **kwargs)
  File "/tmp/bluew/ppobj.py", line 23, in __init__
    name = self.__class__.__name__
  File "/tmp/bluew/device.py", line 57, in __getattribute__
    mac = super().__getattribute__('address')
AttributeError: 'Device' object has no attribute 'address'

bjoernh avatar Jul 02 '18 12:07 bjoernh