From 8eb2a71c3bef6a0bdc23ca3f40d3451ee70187a8 Mon Sep 17 00:00:00 2001 From: sususweet Date: Wed, 4 Feb 2026 16:05:27 +0800 Subject: [PATCH] fix: use lower case unique id for entity. --- custom_components/midea_auto_cloud/midea_entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/midea_auto_cloud/midea_entity.py b/custom_components/midea_auto_cloud/midea_entity.py index 74a1045..4745047 100644 --- a/custom_components/midea_auto_cloud/midea_entity.py +++ b/custom_components/midea_auto_cloud/midea_entity.py @@ -63,7 +63,7 @@ class MideaEntity(CoordinatorEntity[MideaDataUpdateCoordinator], Entity): self._attr_has_entity_name = True # Prefer legacy unique_id scheme if device object is available (device_id based) if self._device is not None: - self._attr_unique_id = f"{DOMAIN}.{self._device_id}_{self._entity_key}" + self._attr_unique_id = f"{DOMAIN}.{self._device_id}_{self._entity_key}".lower() self.entity_id_base = f"midea_{self._device_id}" manu = "Midea" if manufacturer is None else manufacturer self.manufacturer = manu