Skip to content

Commit 4f9dd9e

Browse files
committed
PLG: acc connections attribute to mqtt #1681
1 parent 36a10fb commit 4f9dd9e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • front/plugins/_publisher_mqtt

front/plugins/_publisher_mqtt/mqtt.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ def initialize_message(self):
165165
"device": {
166166
"identifiers": [f"{self.deviceId}_sensor"],
167167
"manufacturer": "NetAlertX",
168-
"name": self.deviceName
168+
"name": self.deviceName,
169+
"connections": [
170+
["mac", self.mac]
171+
],
169172
},
170173
"icon": f'mdi:{self.icon}'
171174
})

0 commit comments

Comments
 (0)