Closed dmaj closed 1 year ago
Maybe it is better to introduce a separate command for creating the configuration ("create-config"). This would be more straightforward and would avoid the unsightly parameter at "get_mqtt_settings".
Sorry, i see your pull request now. Thanks! But have pushed a other solution here: https://github.com/jedie/pysmartmeter/pull/18
If the config file is missing, the program is always terminated with sys.exit(1). But this should not happen when calling "store-settings".