diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-01-04 03:44:07 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-01-04 03:44:07 +0300 |
commit | d549f428cbbd54c49a90f92928e670d373c4a0d9 (patch) | |
tree | b895a216a37483c082af6f20b2d6aef8560db7b3 /src/web_api.py | |
parent | 00de2339b4a61921c4b8789883e5c77b4528a60b (diff) |
config: use get_addr() instead of parse_addr(config[...])
Diffstat (limited to 'src/web_api.py')
-rwxr-xr-x | src/web_api.py | 3 |
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() |