summaryrefslogtreecommitdiff
path: root/src/web_api.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-01-04 03:44:07 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-01-04 03:44:07 +0300
commitd549f428cbbd54c49a90f92928e670d373c4a0d9 (patch)
treeb895a216a37483c082af6f20b2d6aef8560db7b3 /src/web_api.py
parent00de2339b4a61921c4b8789883e5c77b4528a60b (diff)
config: use get_addr() instead of parse_addr(config[...])
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()