mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2026-02-18 09:38:05 +00:00
fix: use lower case unique id for entity.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user