Skip to content

extend class method "async def real_time_api(ip_address, port=80, pwd="")" with inverter  #105

Open
@emichel11

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions