Skip to content

Commit

Permalink
add nwkid, manufacturerid in the rest_ota_firmware_available
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Dec 7, 2024
1 parent c4fb65f commit 714bd05
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Classes/WebServer/WebServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1586,9 +1586,9 @@ def rest_ota_firmware_available(self, verb, data, parameters):

# Retrieve device-level information
zdevice_name = device_data.get("ZDeviceName")
zdevice_name = zdevice_name if zdevice_name not in ( "", None) else device_key
model = device_data.get("Model", "Unknown")
manufacturer = device_data.get("Manufacturer Name", "Unknown")
manufacturer_name = device_data.get("Manufacturer Name", "Unknown")
manufacturer_id = device_data.get("Manufacturer", "Unknown")
ieee = device_data.get("IEEE", "Unknown")

# Process firmware updates
Expand All @@ -1598,9 +1598,11 @@ def rest_ota_firmware_available(self, verb, data, parameters):
url = update_info.get("url", "N/A")

device = {
'nwkid': device_key,
'zdevicename': zdevice_name,
'model': model,
'manufacturername': manufacturer,
'manufacturername': manufacturer_name,
'manufacturerid': manufacturer_id,
'ieee': ieee,
'fwtype': fwtype,
'currentversion': current_version,
Expand Down

0 comments on commit 714bd05

Please sign in to comment.