-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Items set through read_cycle function in Logo-plugin won't get updated properly and will be reset within next read cycle.
I could fix it by adding a source attribute in the _read_cycle function as follows:
284 if 'old' in v: # Variable wurde schon einmal gelesen
285 if v['old'] != new_value: # Variable hat sich geändert
286 ##logger.debug("LOGO: read_cycle():{0} newV:{1} oldV:{2} item:{3} ".format(k, new_value, v['old'], v['item']))
287 v.update({'value': new_value})
288 v.update({'old': new_value}) # speichere den aktuellen Zustand
--289 item(new_value) # aktualisiere das Item
++289 item(new_value, 'LOGO') # aktualisiere das Item
290 logger.debug('LOGO: updateItem {0}'.format(item))