def _decode_data(data):
    json_response = json.loads(data)
    return RoombaInfo(hostname=json_response['hostname'], robot_name=json_response['robotname'], ip=json_response['ip'], mac=json_response['mac'], firmware=json_response['sw'], sku=json_response['sku'], capabilities=json_response['cap'])
def _decode_data(data):
    json_response = json.loads(data)
    return RoombaInfo(hostname=json_response['hostname'], robot_name=json_response['robotname'], ip=json_response['ip'], mac=json_response['mac'], firmware=json_response['sw'], sku=json_response['sku'], capabilities=json_response['cap'])