Skip to content

Commit

Permalink
keep "ble", "zigbee", "mesh", "gateway"
Browse files Browse the repository at this point in the history
  • Loading branch information
caibinqing committed Jul 31, 2024
1 parent c0c5227 commit 6f03196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_gateway3/hass/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self, device: "XDevice", conv: "BaseConv"):
self.entity_id = f"{conv.domain}.{device.uid}_{conv.attr}"

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

self.on_init()
Expand Down

0 comments on commit 6f03196

Please sign in to comment.