We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a240dd commit 28edc8aCopy full SHA for 28edc8a
custom_components/xiaomi_gateway3/hass/add_entitites.py
@@ -120,7 +120,8 @@ def handle_lazy_entities(
120
def add_lazy_entity(attr: str) -> XEntity:
121
lazy_attrs.remove(attr)
122
123
- conv = next(i for i in device.converters if i.attr == attr)
+ # important to check non empty domain for some BLE devices
124
+ conv = next(i for i in device.converters if i.attr == attr and i.domain)
125
entity = create_entity(device, conv)
126
127
gw = CONFIG_ENTRIES.get(device.did)
0 commit comments