From 3be83bf2f57e3017aa627eee76cbcbfe929c0bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Strandberg?= Date: Thu, 22 Feb 2024 22:26:08 +0100 Subject: [PATCH] Correct myUplink dash replacement (#111143) * Corrected dash replacement * Fix comment --- homeassistant/components/myuplink/sensor.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/myuplink/sensor.py b/homeassistant/components/myuplink/sensor.py index b9e0ccd2a1e..1e4bfed1a20 100644 --- a/homeassistant/components/myuplink/sensor.py +++ b/homeassistant/components/myuplink/sensor.py @@ -206,10 +206,8 @@ class MyUplinkDevicePointSensor(MyUplinkEntity, SensorEntity): # Internal properties self.point_id = device_point.parameter_id - # Remove soft hyphens and replace dash to hard hyphen - self._attr_name = device_point.parameter_name.replace("\u002d", "").replace( - "-", "\u2011" - ) + # Remove soft hyphens + self._attr_name = device_point.parameter_name.replace("\u00ad", "") if entity_description is not None: self.entity_description = entity_description