Return the device category and name given the category id

def get_device_category(self, cat):
        """Return the device category and name given the category id"""
        if cat in self.device_categories:
            return self.device_categories[cat]
        else:
            return False