🔨 Change sensor name

This commit is contained in:
SebClem 2022-03-12 22:14:31 +01:00
parent afd09cddbc
commit 08d40d132b

View File

@ -106,9 +106,9 @@ class MqttClient:
},
"entity_category": category,
"icon": icon,
"name": name,
"unique_id": self.device_id + "_" + unique_id,
"object_id": safe_name + "_" + unique_id
"name": f"{self.device_name} {name}",
"unique_id": f"{self.device_id} {unique_id}",
"object_id": f"{safe_name} {unique_id}"
}
if additional_data:
payload.update(additional_data)