From 3c35d87fd2e4f45539ef1016aa26aa76aa22fefd Mon Sep 17 00:00:00 2001 From: RyanClark123 Date: Thu, 15 Jun 2023 11:11:06 +0100 Subject: [PATCH] Minor changes to description Minor changes to description of entities made --- custom_components/owlet/binary_sensor.py | 2 +- custom_components/owlet/strings.json | 2 +- custom_components/owlet/translations/en.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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"