jedie / pysmartmeter

Collect data from Hitchi Smartmeter and expose it via MQTT
GNU General Public License v3.0
7 stars 1 forks source link

Handling of the missing config file fixed #16

Closed dmaj closed 1 year ago

dmaj commented 1 year ago

If the config file is missing, the program is always terminated with sys.exit(1). But this should not happen when calling "store-settings".

dmaj commented 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".

jedie commented 1 year ago

Sorry, i see your pull request now. Thanks! But have pushed a other solution here: https://github.com/jedie/pysmartmeter/pull/18