diff options
Diffstat (limited to 'src/gpiorelayd.py')
-rwxr-xr-x | src/gpiorelayd.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpiorelayd.py b/src/gpiorelayd.py index cd2941f..85015a7 100755 --- a/src/gpiorelayd.py +++ b/src/gpiorelayd.py @@ -4,7 +4,6 @@ import os import sys from home.config import config -from home.util import parse_addr from home.relay.sunxi_h3_server import RelayServer logger = logging.getLogger(__name__) @@ -17,8 +16,8 @@ if __name__ == '__main__': config.load() try: - s = RelayServer(pinname=config['relayd']['pin'], - addr=parse_addr(config['relayd']['listen'])) + s = RelayServer(pinname=config.get('relayd.pin'), + addr=config.get_addr('relayd.listen')) s.run() except KeyboardInterrupt: logger.info('Exiting...') |