move more code into InverterBase class

This commit is contained in:
Stefan Allius
2024-10-03 15:08:07 +02:00
parent cfe2c9cb9d
commit 22d59ed659
13 changed files with 892 additions and 559 deletions

View File

@@ -72,8 +72,7 @@ async def webserver(addr, port):
async def handle_client(reader: StreamReader, writer: StreamWriter, inv_class):
'''Handles a new incoming connection and starts an async loop'''
addr = writer.get_extra_info('peername')
with inv_class(reader, writer, addr) as inv:
with inv_class(reader, writer) as inv:
await inv.local.ifc.server_loop()