mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-20 08:05:57 -04:00
device_tracker MQTT Attributes
This commit is contained in:
1 parent
458577e071
commit
b71037a129
2 files changed
+2
-1
No files matched your search
Regular → Executable
File mode changed.
@@ -476,7 +476,8 @@ def mqtt_start(db):
|
||||
"sync_node": device["devSyncHubNode"],
|
||||
"group": device["devGroup"],
|
||||
"location": device["devLocation"],
|
||||
"parent_mac": device["devParentMAC"]
|
||||
"network_parent_mac": device["devParentMAC"],
|
||||
"network_parent_name": next((dev["devName"] for dev in devices if dev["devMAC"] == device["devParentMAC"]), "")
|
||||
}
|
||||
|
||||
# bulk update device sensors in home assistant
|
||||
|
||||
Reference in new issue
Block a user