Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if evt.firstTime == evt.lastTime and hasattr(evt, 'compClass'):
- for comp in device.getMonitoredComponents(type=evt.compClass):
- if comp.id != evt.component: continue
- comp.status = int(evt.compStatus)
- from transaction import commit
- commit()
- break
Advertisement
Add Comment
Please, Sign In to add comment