Skip to content

U-Bolt Zwave capabilities are not being read correctly  #17

@Daniel-dev22

Description

@Daniel-dev22

I noticed this error in home assistant with my u bolt Zwave lock.

Interestingly bt264 is in the init but for some reason the lock is being read as a genericlock? Even though genericlock also has bt264
https://github.com/maeneak/utecio/blob/dev/utecio/__init__.py#L283

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:945
First occurred: March 28, 2024 at 12:20:34 PM (22 occurrences)
Last logged: 3:20:34 AM

Update for lock.front_door fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 945, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1262, in async_device_update
    await self.async_update()
  File "/config/custom_components/ultraloq_ble/lock.py", line 176, in async_update
    await self.lock.async_update_status()
  File "/usr/local/lib/python3.12/site-packages/utecio/ble/lock.py", line 73, in async_update_status
    if not self.capabilities.bt264:
           ^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'GenericLock' has no attribute 'bt264'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions