gysmo38 / domoticz-python-melcloud

A plugin in python for Domoticz
11 stars 15 forks source link

setPicID referenced before assignment #35

Open padbol2000 opened 1 year ago

padbol2000 commented 1 year ago

Hello, i'm new user, i use the version 0.7.9 and i can control my air conditionner but with this error when i choose "auto mode": Error: Clim: 'onMessage' failed 'UnboundLocalError':'local variable 'setPicID' referenced before assignment'

any idea? Tx, julien.

Kydan64 commented 1 year ago

Hi, I have same problem, I solved it by changing line 115. replace domoticz_levels["mode_pic"] = {"0": 9, "10": 15, "20": 16, "30": 7, "40": 11} by domoticz_levels["mode_pic"] = {"0": 9, "10": 15, "20": 16, "30": 7, "40": 11, "50": 11}