def get_channel(self): key = get_random_key(self.channels) return key, self.channels[key]
def get_device(self): key = get_random_key(self.devices) return self.devices[key]
def get_channel(cls): key = get_random_key(cls.channels) return key, cls.channels[key]
def get_device(cls): key = get_random_key(cls.devices) return cls.devices[key]