Skip to content

Commit 6f03196

Browse files
committed
keep "ble", "zigbee", "mesh", "gateway"
1 parent c0c5227 commit 6f03196

File tree

1 file changed

+1
-1
lines changed
  • custom_components/xiaomi_gateway3/hass

1 file changed

+1
-1
lines changed

custom_components/xiaomi_gateway3/hass/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(self, device: "XDevice", conv: "BaseConv"):
8585
self.entity_id = f"{conv.domain}.{device.uid}_{conv.attr}"
8686

8787
if (MAJOR_VERSION, MINOR_VERSION) >= (2023, 7):
88-
if self._default_to_device_class_name():
88+
if self._default_to_device_class_name() and conv.attr not in ("ble", "zigbee", "mesh", "gateway"):
8989
delattr(self, "_attr_name")
9090

9191
self.on_init()

0 commit comments

Comments
 (0)