From 58269fefeafb40fc2715fc95e99b3522fa1dc05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Strandberg?= Date: Thu, 22 Feb 2024 12:56:42 +0100 Subject: [PATCH] Replace dash with hard hyphen in myuplink entity names (#111074) Replace dash with hard hyphen in entity names --- homeassistant/components/myuplink/sensor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/myuplink/sensor.py b/homeassistant/components/myuplink/sensor.py index 752fab13448..b9e0ccd2a1e 100644 --- a/homeassistant/components/myuplink/sensor.py +++ b/homeassistant/components/myuplink/sensor.py @@ -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