Skip to content

Commit

Permalink
added raw_config to Hmipconfig. So the config file can have custom se…
Browse files Browse the repository at this point in the history
…ctions for 3th Party apps
  • Loading branch information
coreGreenberet committed May 7, 2018
1 parent 7017904 commit 5b0227e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homematicip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
from collections import namedtuple

HmipConfig = namedtuple('HmipConfig', ['auth_token', 'access_point', 'log_level', 'log_file'])
HmipConfig = namedtuple('HmipConfig', ['auth_token', 'access_point', 'log_level', 'log_file', 'raw_config'])

def find_and_load_config_file() -> HmipConfig:
for f in get_config_file_locations():
Expand All @@ -29,7 +29,8 @@ def load_config_file(config_file: str ) -> HmipConfig:
_config['AUTH']['AuthToken'],
_config['AUTH']['AccessPoint'],
int(_config.get('LOGGING', 'Level', fallback=30)),
logging_filename
logging_filename,
_config._sections
)
return _hmip_config

Expand Down

0 comments on commit 5b0227e

Please sign in to comment.