Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/model/devices/device.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/model/devices/device.py')
-rw-r--r--shell/model/devices/device.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/model/devices/device.py b/shell/model/devices/device.py
index 815b103..d7105b5 100644
--- a/shell/model/devices/device.py
+++ b/shell/model/devices/device.py
@@ -31,9 +31,12 @@ _nm_state_to_state = {
}
class Device(gobject.GObject):
- def __init__(self):
+ def __init__(self, device_id=None):
gobject.GObject.__init__(self)
- self._id = util.unique_id()
+ if device_id:
+ self._id = device_id
+ else:
+ self._id = util.unique_id()
def get_type(self):
return 'unknown'