Browse Source

[conf] typo conf is config

Maxime Alves LIRMM@home 3 years ago
parent
commit
17d0142a51
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      pyheatpump/conf.py

+ 2
- 2
pyheatpump/conf.py View File

@@ -42,8 +42,8 @@ config = ConfigParser(
42 42
 config.read_dict(default_config)
43 43
 config.read(filenames=CONFIG_FILES)
44 44
 
45
-API_HOST=conf.get('api', 'host')
46
-API_PORT=conf.get('api', 'port')
45
+API_HOST=config.get('api', 'host')
46
+API_PORT=config.get('api', 'port')
47 47
 
48 48
 async def get_config(request):
49 49
     items = dict([ (

Loading…
Cancel
Save