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

Fix bug with battery for xiaomi.sensor_occupy.03 #1532

Open
AlexxIT opened this issue Dec 30, 2024 · 0 comments
Open

Fix bug with battery for xiaomi.sensor_occupy.03 #1532

AlexxIT opened this issue Dec 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 30, 2024

2024-12-30 10:37:40.180 ERROR (MainThread) [custom_components.xiaomi_gateway3.gate.192.168.1.17] {'msg': 'dispatch_event: add_device (<custom_components.xiaomi_gateway3.core.device.XDevice object at 0x7faab438cc80>,) {}'}
Traceback (most recent call last):
  File "/config/custom_components/xiaomi_gateway3/core/gate/base.py", line 91, in dispatch_event
    handler(*args, **kwargs)
    ~~~~~~~^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_gateway3/hass/add_entitites.py", line 36, in add_device
    if remove_listener := handle_lazy_entities(hass, config_entry, device):
                          ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_gateway3/hass/add_entitites.py", line 139, in handle_lazy_entities
    add_lazy_entity(attr)
    ~~~~~~~~~~~~~~~^^^^^^
  File "/config/custom_components/xiaomi_gateway3/hass/add_entitites.py", line 124, in add_lazy_entity
    entity = create_entity(device, conv)
  File "/config/custom_components/xiaomi_gateway3/hass/add_entitites.py", line 91, in create_entity
    return cls(device, conv)
TypeError: 'NoneType' object is not callable
@AlexxIT AlexxIT added the bug Something isn't working label Dec 30, 2024
@AlexxIT AlexxIT self-assigned this Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant