genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
402 stars 157 forks source link

homegenieservice.cs parameter problem #81

Closed davesmeghead closed 9 years ago

davesmeghead commented 9 years ago

I was getting a problem and fixed it in the HomeGenieService.cs file, line 816 as follows if (parameter == null) {

               module.Properties.Add(new ModuleParameter() {
                    Name = propertyChangedAction.Path,
                    Value = propertyChangedAction.Value.ToString()
                });

               parameter = Utility.ModuleParameterGet(module, propertyChangedAction.Path);

 }

if the parameter was null (i.e. not found), it was added but the value of the variable parameter requires updating, please add the line: parameter = Utility.Mod..............