🔨 Change sensor name
This commit is contained in:
parent
afd09cddbc
commit
08d40d132b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user