Github Mirror / telegraf-plugins: 796b31c0




Add response details to debug output

Add response details to debug output

Commit 796b31c0.

Authored 2023-06-01T13:34:14.000+01:00 by B Tasker in project Github Mirror / telegraf-plugins

+10 lines -3 lines

Commit Signature

Changes

diff --git a/soliscloud/soliscloud.py b/soliscloud/soliscloud.py
--- a/soliscloud/soliscloud.py
+++ b/soliscloud/soliscloud.py
# @@ -209,7 +209,9 @@ class SolisCloud:
# req_body
# )
#
# - return r.json()
# + resp = r.json()
# + self.printDebug(f'Fetched inverter {resp}')
# + return resp
#
#
# def fetchInverterList(self, station_id=False):
# @@ -243,7 +245,9 @@ class SolisCloud:
# req_body
# )
#
# - return r.json()
# + resp = r.json()
# + self.printDebug(f'Fetched inverter list: {resp}')
# + return resp
#
#
# def fetchStationList(self):
# @@ -279,7 +283,10 @@ class SolisCloud:
# req_body
# )
#
# - return r.json()
# + resp = r.json()
# + self.printDebug(f'Got station list: {resp}')
# +
# + return resp
#
#
# def postRequest(self, url, headers, data):
#