diff --git a/src/main/java/com/zsmartsystems/openhab/firmwareprovider/internal/DirectoryReader.java b/src/main/java/com/zsmartsystems/openhab/firmwareprovider/internal/DirectoryReader.java index 69c32f5..9df98d6 100644 --- a/src/main/java/com/zsmartsystems/openhab/firmwareprovider/internal/DirectoryReader.java +++ b/src/main/java/com/zsmartsystems/openhab/firmwareprovider/internal/DirectoryReader.java @@ -163,6 +163,20 @@ private void loadDirectory(String filename) { FirmwareBuilder builder = getFirmwareBuilder(directoryEntry); + if (directoryEntry.getModel() != null) { + builder.withModelRestricted(true); + builder.withModel(directoryEntry.getModel()); + } + if (directoryEntry.getVendor() != null) { + builder.withVendor(directoryEntry.getVendor()); + } + if (directoryEntry.getHash() != null) { + builder.withMd5Hash(directoryEntry.getHash()); + } + if (directoryEntry.getDescription() != null) { + builder.withDescription(directoryEntry.getDescription()); + } + directoryEntry.setProviderFilename(directoryFile.getName()); directoryEntry.setFilesize(filenames.get(directoryEntry.getFilename())); directoryUpdates.put(builder.build(), directoryEntry);