extend class method "async def real_time_api(ip_address, port=80, pwd="")" with inverter #105
Open
Description
The discover process takes some time or - in my case does not work properly
Actually the method
async def real_time_api(ip_address, port=80, pwd=""):
i = await discover(ip_address, port, pwd)
return RealTimeAPI(i)
calls discover and this method scans all available classes in regestry
async def discover(host, port, pwd="") -> Inverter:
failures = []
for inverter in REGISTRY:
It shall be possible to predefine the INVERTER for real_time_api / discover method. This will speedup
the process for known inverters
Metadata
Assignees
Labels
No labels