🔨 Change sensor name
This commit is contained in:
parent
afd09cddbc
commit
08d40d132b
@ -106,9 +106,9 @@ class MqttClient:
|
|||||||
},
|
},
|
||||||
"entity_category": category,
|
"entity_category": category,
|
||||||
"icon": icon,
|
"icon": icon,
|
||||||
"name": name,
|
"name": f"{self.device_name} {name}",
|
||||||
"unique_id": self.device_id + "_" + unique_id,
|
"unique_id": f"{self.device_id} {unique_id}",
|
||||||
"object_id": safe_name + "_" + unique_id
|
"object_id": f"{safe_name} {unique_id}"
|
||||||
}
|
}
|
||||||
if additional_data:
|
if additional_data:
|
||||||
payload.update(additional_data)
|
payload.update(additional_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user