mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Replace dash with hard hyphen in myuplink entity names (#111074)
Replace dash with hard hyphen in entity names
This commit is contained in:
parent
b72d64a3dc
commit
58269fefea
@ -206,7 +206,10 @@ class MyUplinkDevicePointSensor(MyUplinkEntity, SensorEntity):
|
||||
|
||||
# Internal properties
|
||||
self.point_id = device_point.parameter_id
|
||||
self._attr_name = device_point.parameter_name.replace("\u002d", "")
|
||||
# Remove soft hyphens and replace dash to hard hyphen
|
||||
self._attr_name = device_point.parameter_name.replace("\u002d", "").replace(
|
||||
"-", "\u2011"
|
||||
)
|
||||
|
||||
if entity_description is not None:
|
||||
self.entity_description = entity_description
|
||||
|
Loading…
x
Reference in New Issue
Block a user