Why
This change restructures how devices are renamed and updated. This is done to help be able to easily identify which devices were created by Pulsemeeter and which ones may be user created.
I actually discovered this limitation when trying to make my own sink that uses a null module, but I was unable to load the null module as a sink in Pulsemeeter. This doesn't fixing not being able to load external null modules, but it's a step that helps make it easier to maintain and I think allows for easier managing of devices.
How it works
Previously, the config file had one name
field that was used for the name and the description of the device. Now, each device has both a name
and a desc
field. When a user does any type of renaming, the device is referenced by the name (which now never changes) and the description property is updated.
For backwards compatibility, if a user is using an old config that doesn't have a desc
field for the device, it will default to the name
field, and then also create the the desc
field as necessary.
I didn't see a contributing guideline, so please let me know if there's anything else I should include.
enhancement