Skip to content

Commit

Permalink
Update plugin.py
Browse files Browse the repository at this point in the history
Implemented Tip from JoostDkr to fix (Issue #33)
  • Loading branch information
sincze authored Dec 17, 2022
1 parent 6b93dab commit a0a68fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def onMessage(self, Connection, Data):
Domoticz.Debug("Retrieved following json: "+json.dumps(apiResponse))

try:
if ('back' in apiResponse):
if ('back' in apiResponse and strData.find('data') > -1 and strData.find('plantId') > -1): # 17-12-2022 Tip from JoostDkr
#if ('back' in apiResponse):
#if not ['back']['success']:
# Domoticz.Log("Login Failed")
#elif ('back' in apiResponse):
Expand Down

0 comments on commit a0a68fe

Please # to comment.