Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure dictionaries in config files #88

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ohinckel
Copy link

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