summaryrefslogtreecommitdiff
path: root/src/web_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/web_api.py')
-rwxr-xr-xsrc/web_api.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web_api.py b/src/web_api.py
index 672bfb8..c00c372 100755
--- a/src/web_api.py
+++ b/src/web_api.py
@@ -7,7 +7,6 @@ from datetime import datetime, timedelta
from aiohttp import web
from home import http
-from home.util import parse_addr
from home.config import config, is_development_mode
from home.database import BotsDatabase, SensorsDatabase, InverterDatabase
from home.database.inverter_time_formats import *
@@ -234,5 +233,5 @@ if __name__ == '__main__':
loop = asyncio.get_event_loop()
- server = WebAPIServer(parse_addr(config['server']['listen']))
+ server = WebAPIServer(config.get_addr('server.listen'))
server.run()