diff options
Diffstat (limited to 'src/temphumd.py')
-rwxr-xr-x | src/temphumd.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/temphumd.py b/src/temphumd.py index 563d192..f4d1fca 100755 --- a/src/temphumd.py +++ b/src/temphumd.py @@ -6,7 +6,6 @@ import logging from typing import Optional from home.config import config -from home.util import parse_addr from home.temphum import SensorType, create_sensor, TempHumSensor logger = logging.getLogger(__name__) @@ -72,7 +71,7 @@ if __name__ == '__main__': int(config['sensor']['bus'])) try: - host, port = parse_addr(config['server']['listen']) + host, port = config.get_addr('server.listen') asyncio.run(run_server(host, port)) except KeyboardInterrupt: logging.info('Exiting...') |