mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Always add friendly name attribute to ZHA entities (#19141)
* Always add friendly name attribute * Only change device_info name
This commit is contained in:
parent
eada1a184c
commit
f60f9bae00
@ -100,7 +100,7 @@ class ZhaEntity(entity.Entity):
|
|||||||
'identifiers': {(DOMAIN, ieee)},
|
'identifiers': {(DOMAIN, ieee)},
|
||||||
'manufacturer': self._endpoint.manufacturer,
|
'manufacturer': self._endpoint.manufacturer,
|
||||||
'model': self._endpoint.model,
|
'model': self._endpoint.model,
|
||||||
'name': self._device_state_attributes['friendly_name'],
|
'name': self._device_state_attributes.get('friendly_name', ieee),
|
||||||
'via_hub': (DOMAIN, self.hass.data[DATA_ZHA][DATA_ZHA_BRIDGE_ID]),
|
'via_hub': (DOMAIN, self.hass.data[DATA_ZHA][DATA_ZHA_BRIDGE_ID]),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user