Device.connect() changed to staticmethod.