Browse Source

[config] remove default configuration (issue #31)

Maxime Alves LIRMM@home 3 years ago
parent
commit
48d4bba9b5
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      pyheatpump/config.py

+ 3
- 1
pyheatpump/config.py View File

@@ -15,6 +15,7 @@ import json
15 15
 from pyheatpump.logger import logger_init
16 16
 logger = logger_init()
17 17
 
18
+"""
18 19
 default_config = {
19 20
     'heatpump': {
20 21
         'serial_port': '/dev/ttyUSB0',
@@ -42,13 +43,14 @@ default_config = {
42 43
         'port': 80
43 44
     }
44 45
 }
46
+"""
45 47
 
46 48
 CONFIG_FILES=[
47 49
     '/etc/pyheatpump.ini',
48 50
     './pyheatpump.ini']
49 51
 
50 52
 config = ConfigParser()#default_section='heatpump')
51
-config.read_dict(default_config)
53
+#config.read_dict(default_config)
52 54
 config.read(filenames=CONFIG_FILES)
53 55
 
54 56
 API_HOST=config.get('api', 'host')

Loading…
Cancel
Save