SonnenladenGmbH / APsystems-EZ1-API

The APsystems EZ1 Python library offers a streamlined interface for interacting with the local API of APsystems EZ1 Microinverters.
MIT License
54 stars 7 forks source link

Debug Output in "Get Device Info" #14

Closed Sebastian-MrBeam closed 3 months ago

Sebastian-MrBeam commented 3 months ago

What happened?

response = await self.request("getDeviceInfo") print(response)_ return ( ReturnDeviceInfo( deviceId=response["data"]["deviceId"], devVer=response["data"]["devVer"], ssid=response["data"]["ssid"], ipAddr=response["data"]["ipAddr"], minPower=int(response["data"]["minPower"]), maxPower=int(response["data"]["maxPower"]), ) if response and response.get("data") else None )

came in with Version 1.1.0

The python error

Every function call prints an Output - all other functions does not, so looks like a debug leftover.

Your python version

3.12

Your OS inlcuding your version

Windows 11

mawoka-myblock commented 3 months ago

Indeed. Shouldn't be there, thank you for noticing that!

mawoka-myblock commented 3 months ago

I've removed that in the version 3 release.