TypeError: int() argument must be a string or a number, not 'DeviceInfoForm'