Esempio n. 1
0
 def get_channel(self):
     key = get_random_key(self.channels)
     return key, self.channels[key]
Esempio n. 2
0
 def get_device(self):
     key = get_random_key(self.devices)
     return self.devices[key]
Esempio n. 3
0
 def get_channel(cls):
     key = get_random_key(cls.channels)
     return key, cls.channels[key]
Esempio n. 4
0
 def get_device(cls):
     key = get_random_key(cls.devices)
     return cls.devices[key]
Esempio n. 5
0
 def get_channel(cls):
     key = get_random_key(cls.channels)
     return key, cls.channels[key]
Esempio n. 6
0
 def get_device(cls):
     key = get_random_key(cls.devices)
     return cls.devices[key]