Skip to content

Commit

Permalink
DeviceHandler: undo accidental removal of addWatch (fixup 5265b38)
Browse files Browse the repository at this point in the history
  • Loading branch information
carandraug authored and iandobbie committed Sep 30, 2023
1 parent acd5aa3 commit f2d235f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cockpit/handlers/deviceHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ def __repr__(self):

## Add a watch on a device parameter.
def addWatch(self, name, callback):
return
if name not in self._watches:
self._watches[name] = set()
self._watches[name].add(callback)


## A function that any control can call to toggle enabled/disabled state.
Expand Down

0 comments on commit f2d235f

Please sign in to comment.