Skip to content

Commit 2c7da23

Browse files
author
marq24
committed
use 'user-specified' entify name if present (from registry_entry)
1 parent 75451b2 commit 2c7da23

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

custom_components/fordconnect_query/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,11 @@ def _friendly_name_internal(self) -> str | None:
675675
if name is None and self.use_device_name:
676676
return device_name
677677

678+
# check if there is a user specified entity name (overwritten)
679+
if registry_entry := self.registry_entry:
680+
if registry_entry.has_entity_name and registry_entry.name is not None:
681+
name = registry_entry.name
682+
678683
# we overwrite the default impl here and just return our 'name'
679684
# return f"{device_name} {name}" if device_name else name
680685
if device_entry.name_by_user is not None:

custom_components/fordconnect_query/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"iot_class": "cloud_polling",
1010
"issue_tracker": "https://github.com/marq24/ha-fordconnect-query/issues",
1111
"requirements": [],
12-
"version": "2026.3.2"
12+
"version": "2026.3.3"
1313
}

0 commit comments

Comments
 (0)