add static constructor to init proxy statistics

This commit is contained in:
Stefan Allius
2023-10-20 00:27:21 +02:00
parent 5433e18389
commit 11d7d616fa
2 changed files with 24 additions and 16 deletions

View File

@@ -4,6 +4,7 @@ from async_stream import AsyncStream
from inverter import Inverter
from config import Config
from mqtt import Mqtt
from infos import Infos
async def handle_client(reader, writer):
@@ -69,6 +70,8 @@ if __name__ == "__main__":
# call Mqtt singleton to establisch the connection to the mqtt broker
mqtt = Mqtt()
# initialize the proxy statistics
Infos.static_init()
#
# Register some UNIX Signal handler for a gracefully server shutdown on Docker restart and stop