Skip to content

Configure dictionaries in config files - #88

Open
ohinckel wants to merge 1 commit into
mknx:developfrom
ohinckel:dev-config-dicts
Open

Configure dictionaries in config files#88
ohinckel wants to merge 1 commit into
mknx:developfrom
ohinckel:dev-config-dicts

Conversation

@ohinckel

Copy link
Copy Markdown

Currently only simple key/values and lists are supported in configuration files like smarthome.conf or plugin.conf.

This patch makes it possible to configure dictionaly using the following syntax:

[section]
  list = value1 | value2 | ...
  dict = { key1 : value2 | key2 : value2 | key3 : value3 | ...}

I think some plugins or the core itself can make use of such a configuration style to make the configuration a little bit easier and be more flexible in configuration settings.

# using syntax: { key : value | key : value | ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant