dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

Fix loading of DDFs due constants.json race #7793

Closed manup closed 4 months ago

manup commented 4 months ago

Stupid beginner mistake. The JSON files are read in arbitrary file system order. Which is ok except for the constants.json which need to be read first in order to determine if a DDF should be loaded.

ebaauw commented 4 months ago

Shouldn’t the relevant constants be included in the bundle?

Zehir commented 4 months ago

Shouldn’t the relevant constants be included in the bundle?

They are, the issue is for the not bundled DDF

ebaauw commented 4 months ago

The JSON files are read in arbitrary file system order

Makes you miss the MS-DOS days where you could sort the directory entries on disk.