Append name char value from the service to HomeKit Controller Entities (#74359)
This commit is contained in:
parent
737a1fd9fa
commit
30a5df5895
26 changed files with 662 additions and 145 deletions
|
@ -106,7 +106,7 @@ class HomeKitButton(CharacteristicEntity, ButtonEntity):
|
|||
@property
|
||||
def name(self) -> str:
|
||||
"""Return the name of the device if any."""
|
||||
if name := super().name:
|
||||
if name := self.accessory.name:
|
||||
return f"{name} {self.entity_description.name}"
|
||||
return f"{self.entity_description.name}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue