Skip to content
Discussion options

You must be logged in to vote

Again taking the clean.py example for using the mqtt_as library, the 'from mqtt_as import config' in this file is only necessary as the clean.py code makes assignments to the config dictionary itself, and not all assignments are made just in the config.py file (the config.py file also has 'from mqtt_as import config' so likewise it can make changes to the config dictionary.
Too many things named config in these examples I must agree and in my use of this very useful mqtt_as library I do use a config file but I name my file mqtt_as_ini.py instead of config.py so I don't get confused.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@davefes
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@jfleon
Comment options

@davefes
Comment options

@beetlegigg
Comment options

@davefes
Comment options

Answer selected by jfleon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants