diff --git a/custom_components/owlet/binary_sensor.py b/custom_components/owlet/binary_sensor.py index aae4599..5a69af4 100644 --- a/custom_components/owlet/binary_sensor.py +++ b/custom_components/owlet/binary_sensor.py @@ -122,7 +122,7 @@ class OwletBinarySensor(OwletBaseEntity, BinarySensorEntity): """Initialize the binary sensor.""" super().__init__(coordinator) self.entity_description = sensor_description - self._attr_unique_id = f"{self.sock.serial}-{self.entity_description.name}" + self._attr_unique_id = f"{self.sock.serial}-{self.entity_description.translation_key}" @property def is_on(self) -> bool: diff --git a/custom_components/owlet/strings.json b/custom_components/owlet/strings.json index 3cfee18..00843cf 100644 --- a/custom_components/owlet/strings.json +++ b/custom_components/owlet/strings.json @@ -65,7 +65,7 @@ "name": "Sock Diconnected Alert" }, "sock_off":{ - "name":"sock_off" + "name":"Sock Off" }, "awake":{ "name":"Awake" diff --git a/custom_components/owlet/translations/en.json b/custom_components/owlet/translations/en.json index 3cfee18..00843cf 100644 --- a/custom_components/owlet/translations/en.json +++ b/custom_components/owlet/translations/en.json @@ -65,7 +65,7 @@ "name": "Sock Diconnected Alert" }, "sock_off":{ - "name":"sock_off" + "name":"Sock Off" }, "awake":{ "name":"Awake"